0

I created a barplot with nested grouping using seaborn and the hue keyword argument. I want to draw statistical annotations on this plot. For this I need the x- and y-coordinates for each bar. How can I do that?

This is my plot:

enter image description here

Johannes Wiesner
  • 1,006
  • 12
  • 33
  • Similar logic [here](https://stackoverflow.com/questions/37579284/matplotlib-get-coordinates-of-top-and-bottom-of-horizontal-bar-edges) – Sheldore Jun 20 '19 at 14:48
  • 1
    `ax.patches()` returns the coordinates. – Johannes Wiesner Jun 23 '19 at 15:27
  • Providing a figure and expecting an answer is too broad for Stack Overflow. Please read [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve). – Sheldore Jun 23 '19 at 15:57

0 Answers0