mwaskom / seaborn

Statistical data visualization in Python
https://seaborn.pydata.org
BSD 3-Clause "New" or "Revised" License
12.6k stars 1.93k forks source link

Feature request: Dumbell plots #3778

Closed mflova closed 2 weeks ago

mflova commented 2 weeks ago

image

These can be quite common in politics or sociology in order to represent not only the data itself but also the difference between two groups. Although this kind of plot can be built by using matplotlib and seaborn combined, having a dedicated method that simplifies this work could be helpful. If this feature is interesting for more people, I can contributing into this future (both interface and implementation itself).

More examples: https://datavizcatalogue.com/blog/chart-snapshot-dumbbell-plot/

mwaskom commented 2 weeks ago

This is probably too specific for a dedicated seaborn function. It should be pretty easy to make with the objects interface, though, and relatively easy to make with a combination of scatterplot and lineplot in the classic interface.