Skip to content

Commit 8a61494

Browse files
committed
GraphWidget, not Graph
1 parent 042dfbc commit 8a61494

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plotly/widgets/graph_widget.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,10 @@ def restyle(self, update, indices=None):
346346
Examples:
347347
Initialization - Start each example below with this setup:
348348
```
349-
from plotly.widgets import Graph
349+
from plotly.widgets import GraphWidget
350350
from IPython.display import display
351351
352-
graph = GraphWidget('https://plot.ly/~chris/3979')
352+
graph = GraphWidget()
353353
display(graph)
354354
```
355355
@@ -438,7 +438,7 @@ def relayout(self, layout):
438438
Examples - Start each example below with this setup:
439439
Initialization:
440440
```
441-
from plotly.widgets import Graph
441+
from plotly.widgets import GraphWidget
442442
from IPython.display import display
443443
444444
graph = GraphWidget('https://plot.ly/~chris/3979')
@@ -521,7 +521,7 @@ def hover(self, *hover_objs):
521521
Examples:
522522
Initialization - Start each example below with this setup:
523523
```
524-
from plotly.widgets import Graph
524+
from plotly.widgets import GraphWidget
525525
from IPython.display import display
526526
527527
graph = GraphWidget('https://plot.ly/~chris/3979')
@@ -569,7 +569,7 @@ def add_traces(self, traces, new_indices=None):
569569
Examples:
570570
Initialization - Start each example below with this setup:
571571
```
572-
from plotly.widgets import Graph
572+
from plotly.widgets import GraphWidget
573573
from plotly.graph_objs import Scatter
574574
from IPython.display import display
575575
@@ -614,7 +614,7 @@ def delete_traces(self, indices):
614614
615615
Example - Delete the 2nd trace:
616616
```
617-
from plotly.widgets import Graph
617+
from plotly.widgets import GraphWidget
618618
from IPython.display import display
619619
620620
graph = GraphWidget('https://plot.ly/~chris/3979')
@@ -704,7 +704,7 @@ def extend_traces(self, update, indices, max_points=None):
704704
Examples:
705705
Initialization - Start each example below with this setup:
706706
```
707-
from plotly.widgets import Graph
707+
from plotly.widgets import GraphWidget
708708
from IPython.display import display
709709
710710
graph = GraphWidget()

0 commit comments

Comments
 (0)