statannot
statannot copied to clipboard
Horizontal plot option
The previous code only functioned for vertical plots, I added an option for horizontal plots. Some information is presented better in horizontal plots over verticle.
How it works
I tried to keep this minimally invasive. I added statements to check if box_plotter.orient is verticle or horizontal. The x and y coordinates of the annotations and lines are switched from what they would be if the plot was verticle.
Long annotations in a horizontal plot is generally not recommended, as stylistically it does not look as good.
Examples
Would be great to merge that one!
Really need this one!
Please can we have this one? Makes Bar graphs much prettier and readable in horizontal function, especially when your have long labels.
@webermarcolivier do you need any help to merge this in?