using matplotlib, not seaborn, make equal area violin plots

254 Views Asked by At

I'm trying to plot some data as split violins, for which I adapted this answer, to get a first pass. The issue with this is that the parameter controlling the violin sizes is a 'width' which means that distributions that are narrow will look materially smaller than distributions that are wide (they'll have less visual weight). I do not want to use Seaborn (I'm actually not using categorical data, for one thing), but it has a handy feature that makes the plotted area of violins equal. Does anyone have any ideas about how I could customize matplotlib's violinplot to do this?

0

There are 0 best solutions below