Change axis tick orientation for Bar plot

Can anyone tell, how can I change the x_axis tick labels’ orientation for Bar plots ?

Example from the docs: http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html#aggregations

I know there’s major_label_orientation parameter but that’s for figure object. Any idea, how can I achieve it’s equivalent for Bar ?

Thanks

major_label_orientation is a property of axis objects, to set it you need to get ahold of the axis object you want to style. You can use

     foo.select(LinearAxis)

to get a list of all axes on a chart (or any Plot subclass) and then set major_label_orientation on the axis you care about.

Bryan

···

On Oct 28, 2015, at 9:56 AM, Kevad <[email protected]> wrote:

Can anyone tell, how can I change the x_axis tick labels' orientation for Bar plots ?

Example from the docs: http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html#aggregations

I know there's major_label_orientation parameter but that's for figure object. Any idea, how can I achieve it's equivalent for Bar ?

Thanks

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c1c67c16-60d4-4364-80fb-c7d31cb919ba%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Thanks a lot, it worked. :slight_smile:

···

On Wednesday, October 28, 2015 at 4:03:00 PM UTC+1, Bryan Van de ven wrote:

major_label_orientation is a property of axis objects, to set it you need to get ahold of the axis object you want to style. You can use

 foo.select(LinearAxis)

to get a list of all axes on a chart (or any Plot subclass) and then set major_label_orientation on the axis you care about.

Bryan

On Oct 28, 2015, at 9:56 AM, Kevad [email protected] wrote:

Can anyone tell, how can I change the x_axis tick labels’ orientation for Bar plots ?

Example from the docs: http://bokeh.pydata.org/en/latest/docs/user_guide/charts.html#aggregations

I know there’s major_label_orientation parameter but that’s for figure object. Any idea, how can I achieve it’s equivalent for Bar ?

Thanks


You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.

To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].

To post to this group, send email to [email protected].

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/c1c67c16-60d4-4364-80fb-c7d31cb919ba%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.