samedi 23 juillet 2016

Ability to sort plots in a seaborn violin plot?

I created a long violin plot (just for fun) using seaborn, the top of which looks like this:

enter image description here

I would like to sort these violins by their median. Is this possible?

The code:

sns.set(font_scale=2.5)
f, ax = plt.subplots(figsize=(22, 66))
sns.violinplot(x=inspect['SCORE'], y=inspect['CUISINE DESCRIPTION'])

Aucun commentaire:

Enregistrer un commentaire