8000 add swarm plot to the scatter documentation by rl-utility-man · Pull Request #5149 · plotly/plotly.py · GitHub
[go: up one dir, main page]

Skip to content

add swarm plot to the scatter documentation #5149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 7, 2025
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
7CBF
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
0