You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/python/creating-and-updating-figures.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -206,6 +206,7 @@ fig.show()
206
206
The `plotly.subplots.make_subplots()` function produces a graph object figure that is preconfigured with a grid of subplots that traces can be added to. The `add_trace()` function will be discussed more below.
207
207
208
208
```python
209
+
import plotly.graph_objects as go
209
210
from plotly.subplots import make_subplots
210
211
211
212
fig = make_subplots(rows=1, cols=2)
@@ -260,6 +261,7 @@ fig.show()
260
261
If a figure was created using `plotly.subplots.make_subplots()`, then supplying the `row` and `col` arguments to `add_trace()` can be used to add a trace to a particular subplot.
261
262
262
263
```python
264
+
import plotly.graph_objects as go
263
265
from plotly.subplots import make_subplots
264
266
265
267
fig = make_subplots(rows=1, cols=2)
@@ -274,6 +276,7 @@ This also works for figures created by Plotly Express using the `facet_row` and
0 commit comments