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

Plotting of significance happens beneath Seaborn Violin Plots #118

Open greenmna opened 1 year ago

greenmna commented 1 year ago

Hello!

Full disclosure, I am currently using Seaborn v 0.12, which I know is not fully supported as of yet.

Currently, I have had no issues running statannotations up until trying to get the placement of the significance lines above my violin plots.

Here is how they look when loc='inside' image

My question is if anyone else has been broached by something similar and has a solution, even if it involves digging into the Annotator.py file?

There is also one, unrelated to my current issue, but still relevant, thing that I took notice of. This is an issue mainly with Seaborn, but it might tie into those who try to use statannotations with Seaborn 0.12 if their numpy is later than 1.20: A lot of the old np classes have been deprecated (e.g. np.float no longer works, you must call 'float', 'float32', or 'float64' as strings wherever calling a numpy data type using the old syntax). So, hopefully seaborn updates their scripts categorical.py and utils.py where they're called

Thank you for any assistance! I love the scripts by the way, they're a life-saver!