8000 ending with fig.show() · rl-utility-man/plotly.py@e563804 · GitHub
[go: up one dir, main page]

Skip to content

Commit e563804

Browse files
ending with fig.show()
1 parent 9fa8326 commit e563804

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/python/line-and-scatter.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,12 +365,14 @@ def swarm(
365365
ticks='', # Remove the ticks
366366
title=""
367367
)
368-
fig.show()
368+
return fig
369369

370370

371371

372372
df_iris = px.data.iris() # iris is a pandas DataFrame
373-
swarm(df_iris["sepal_length"])
373+
fig = swarm(df_iris["sepal_length"])
374+
fig.show()
375+
374376
```
375377

376378
## Scatter and line plots with go.Scatter

0 commit comments

Comments
 (0)
0