@@ -191,9 +191,9 @@ def on_hover(self, callback, remove=False):
191
191
Example:
192
192
```
193
193
from IPython.display import display
194
- def message_handler(widget, msg ):
194
+ def message_handler(widget, hover_msg ):
195
195
display(widget._graph_url)
196
- display(msg )
196
+ display(hover_msg )
197
197
198
198
g = Graph('https://plot.ly/~chris/3375')
199
199
display(g)
@@ -211,16 +211,16 @@ def on_zoom(self, callback, remove=False):
211
211
Args:
212
212
callback (function): Callback function this is called
213
213
on zoom events with the signature:
214
- callback(widget, zoom_obj ) -> None
214
+ callback(widget, ranges ) -> None
215
215
216
216
Args:
217
217
widget (GraphWidget): The current instance
218
218
of the graph widget that this callback is assigned to.
219
219
220
- zoom_obj (dict): A description of the
220
+ ranges (dict): A description of the
221
221
region that was zoomed into.
222
222
223
- zoom_obj example:
223
+ ranges example:
224
224
{
225
225
'x': [1.8399058038561549, 2.16443359662],
226
226
'y': [4.640902872777017, 7.855677154582]
@@ -235,9 +235,9 @@ def on_zoom(self, callback, remove=False):
235
235
Example:
236
236
```
237
237
from IPython.display import display
238
- def message_handler(widget, msg ):
238
+ def message_handler(widget, ranges ):
239
239
display(widget._graph_url)
240
- display(msg )
240
+ display(ranges )
241
241
242
242
g = Graph('https://plot.ly/~chris/3375')
243
243
display(g)
0 commit comments