☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Change axis tick orientation for Bar plot

Community Support
Bryan
Bryan

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 <vaddinavivek@gmail.com> 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 bokeh+unsubscribe@continuum.io.
To post to this group, send email to bokeh@continuum.io.
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\.

⌁   Link to post
Kevad
Kevad

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 vaddin...@gmail.com 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 bokeh+un...@continuum.io.

To post to this group, send email to bo...@continuum.io.

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.

⌁   Link to post

End of archived discussion · Replies are disabled