Skip to content

Commit a50bc3e

Browse files
committed
remove deprecated append_trace
1 parent 591f6a9 commit a50bc3e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Diff for: doc/python/subplots.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ jupyter:
66
extension: .md
77
format_name: markdown
88
format_version: '1.3'
9-
jupytext_version: 1.14.1
9+
jupytext_version: 1.16.4
1010
kernelspec:
11-
display_name: Python 3
11+
display_name: Python 3 (ipykernel)
1212
language: python
1313
name: python3
1414
language_info:
@@ -20,7 +20,7 @@ jupyter:
2020
name: python
2121
nbconvert_exporter: python
2222
pygments_lexer: ipython3
23-
version: 3.8.8
23+
version: 3.11.10
2424
plotly:
2525
description: How to make subplots in with Plotly's Python graphing library. Examples
2626
of stacked, custom-sized, gridded, and annotated subplots.
@@ -80,17 +80,17 @@ import plotly.graph_objects as go
8080

8181
fig = make_subplots(rows=3, cols=1)
8282

83-
fig.append_trace(go.Scatter(
83+
fig.add_trace(go.Scatter(
8484
x=[3, 4, 5],
8585
y=[1000, 1100, 1200],
8686
), row=1, col=1)
8787

88-
fig.append_trace(go.Scatter(
88+
fig.add_trace(go.Scatter(
8989
x=[2, 3, 4],
9090
y=[100, 110, 120],
9191
), row=2, col=1)
9292

93-
fig.append_trace(go.Scatter(
93+
fig.add_trace(go.Scatter(
9494
x=[0, 1, 2],
9595
y=[10, 11, 12]
9696
), row=3, col=1)

0 commit comments

Comments
 (0)