serhii.net

In the middle of the desert you can say anything you want

15 Apr 2024

Seaborn barplot ordering gotcha

seaborn.barplot — seaborn 0.13.2 documentation:

passing order=[list,of,cats,in,order] decides the ordering.

Otherwise “it will be inferred” except that it’s not always trivial to understand how exactly (or I’m too sleep-deprived).

And if I’m drawing horizontal lines on top of the bars in the barplot based on indexes then the order may be sligthly different.

Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus