Skip to content
Merged
Prev Previous commit
Next Next commit
ending with fig.show()
  • Loading branch information
rl-utility-man authored Apr 20, 2025
commit e563804f06e89aa9a62ecf615e68313ce62954c0
6 changes: 4 additions & 2 deletions doc/python/line-and-scatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -365,12 +365,14 @@ def swarm(
ticks='', # Remove the ticks
title=""
)
fig.show()
return fig



df_iris = px.data.iris() # iris is a pandas DataFrame
swarm(df_iris["sepal_length"])
fig = swarm(df_iris["sepal_length"])
fig.show()

```

## Scatter and line plots with go.Scatter
Expand Down