Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

Horizontal plot option #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

huanglau
Copy link

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

Updated example with horiz plot


Merge remote-tracking branch 'huanglau/horizontal_plots' into horizontal_plots


Updated gitignore


Merge remote-tracking branch 'huanglau/horizontal_plots' into horizontal_plots


Adjusted vertical line spacing for horiz plot


Updated spacing for horizontal inner plots


Added clearer comments. 


Made text verticle


Cleaned up unused code


Ran example code


Updated xytest offset for horiz plots
@kingjr
Copy link

kingjr commented Mar 26, 2021

Would be great to merge that one!

@hollywen7
Copy link

Really need this one!

@kateus65
Copy link

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

@mxposed
Copy link

mxposed commented Jul 22, 2021

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

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

Successfully merging this pull request may close these issues.

None yet

5 participants