Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mfvd opened this issue Sep 12, 2024 · 2 comments
Open

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

mfvd opened this issue Sep 12, 2024 · 2 comments

Comments

@mfvd
Copy link

mfvd commented Sep 12, 2024

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?

@mattrussell2
Copy link

You have to add order=conditions to the Annotator call.

One caveat though is that custom annotations where you've dropped non-significant values have still failed for me with the custom reordering.

@mfvd
Copy link
Author

mfvd commented Oct 11, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants