trevismd / statannotations

add statistical significance annotations on seaborn plots. Further development of statannot, with bugfixes, new features, and a different API.
Other
655 stars 73 forks source link

Mismatch betwen in the order of plotted data and annotations #161

Open mfvd opened 3 weeks ago

mfvd commented 3 weeks ago

Hi!

When reordering conditions on the x-axis in a seaborn boxplot using order=conditions, I get a mismatch between the plotted data and statannotations. Significance values are misplaced and assigned to the "original" order of the labels and not according to the reordered plotting of the data and x-axis labels. Not sure if this is a bug or if I'm missing something.

Any idea on how to solve this?