statannot icon indicating copy to clipboard operation
statannot copied to clipboard

Horizontal plot option

Open huanglau opened this issue 4 years ago • 4 comments

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

StatAnnotHorizontal_17 StatAnnotHorizontal_16 StatAnnotHorizontal_15 StatAnnotHorizontal_14 StatAnnotHorizontal_13 StatAnnotHorizontal_12

huanglau avatar Jul 31 '20 21:07 huanglau

Would be great to merge that one!

kingjr avatar Mar 26 '21 12:03 kingjr

Really need this one!

hollywen7 avatar Apr 06 '21 01:04 hollywen7

Please can we have this one? Makes Bar graphs much prettier and readable in horizontal function, especially when your have long labels.

kateus65 avatar May 22 '21 14:05 kateus65

@webermarcolivier do you need any help to merge this in?

mxposed avatar Jul 22 '21 04:07 mxposed