Skip to content
Merged
Prev Previous commit
Next Next commit
Update line-and-scatter.md
  • Loading branch information
rl-utility-man authored Jun 4, 2025
commit 7fa86a6f16113341e44f90d84e5d5eb68b599d21
2 changes: 1 addition & 1 deletion doc/python/line-and-scatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ fig.show()

### Swarm (or Beeswarm) Plots

Swarm plots show the distribution of values in a column by giving each entry one dot and adjusting the y-value so that dots do not overlap and appear symmetrically around the y=0 line. They complement histograms, box plots, and violin plots. This example could be generalized to implement a swarm plot for multiple categories by adjusting the y-coordinate for each category.
Swarm plots show the distribution of values in a column by giving each entry one dot and adjusting the y-value so that dots do not overlap and appear symmetrically around the y=0 line. They complement [histograms](https://plotly.com/python/histograms/), [box plots](https://plotly.com/python/box-plots/), and [violin plots](https://plotly.com/python/violin/). This example could be generalized to implement a swarm plot for multiple categories by adjusting the y-coordinate for each category.

```python
import pandas as pd
Expand Down