☰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

modify label properties of nested category axis

Community Support
Joe_Hiatt
Joe_Hiatt

I am trying to modify the properties (e.g. font size, alpha, orientation) of the higher level labels of a nested category axis. For example, in the plot labeled “Fruit Counts by Year” on the categorical axis page in the user guide, how would one change the orientation of the level of labels including “Apples,” “Pears,” etc.? Thanks for providing and supporting this amazing tool!

⌁   Link to post
p-himik
p-himik

Hi Joe,

You can use “group_text_*” properties - e.g. “p.xaxis.group_text_color = ‘red’”.

The documentation is here: axes — Bokeh 3.3.2 Documentation

Regards,

Eugene

···

On Tuesday, November 28, 2017 at 1:46:36 AM UTC+7, Joe Hiatt wrote:

I am trying to modify the properties (e.g. font size, alpha, orientation) of the higher level labels of a nested category axis. For example, in the plot labeled “Fruit Counts by Year” on the categorical axis page in the user guide, how would one change the orientation of the level of labels including “Apples,” “Pears,” etc.? Thanks for providing and supporting this amazing tool!

⌁   Link to post
p-himik
p-himik

Ah, but it doesn’t appear to have an orientation parameter, sorry.

  • Eugene
···

On Tuesday, November 28, 2017 at 12:32:26 PM UTC+7, Eugene Pakhomov wrote:

Hi Joe,

You can use “group_text_*” properties - e.g. “p.xaxis.group_text_color = ‘red’”.

The documentation is here: https://bokeh.pydata.org/en/latest/docs/reference/models/axes.html#bokeh.models.axes.CategoricalAxis

Regards,

Eugene

On Tuesday, November 28, 2017 at 1:46:36 AM UTC+7, Joe Hiatt wrote:

I am trying to modify the properties (e.g. font size, alpha, orientation) of the higher level labels of a nested category axis. For example, in the plot labeled “Fruit Counts by Year” on the categorical axis page in the user guide, how would one change the orientation of the level of labels including “Apples,” “Pears,” etc.? Thanks for providing and supporting this amazing tool!

⌁   Link to post
Bryan
Bryan

This is correct, the group labels are currently always parallel to the axis. It would be reasonable to open a GH issue to discuss adding more options as new feature development.

Thanks,

Bryan

···

On Nov 27, 2017, at 23:33, Eugene Pakhomov <p1himik@gmail.com> wrote:

Ah, but it doesn't appear to have an orientation parameter, sorry.

- Eugene

On Tuesday, November 28, 2017 at 12:32:26 PM UTC+7, Eugene Pakhomov wrote:
Hi Joe,

You can use "group_text_*" properties - e.g. "p.xaxis.group_text_color = 'red'".
The documentation is here: axes — Bokeh 3.3.2 Documentation

Regards,
Eugene

On Tuesday, November 28, 2017 at 1:46:36 AM UTC+7, Joe Hiatt wrote:
I am trying to modify the properties (e.g. font size, alpha, orientation) of the higher level labels of a nested category axis. For example, in the plot labeled "Fruit Counts by Year" on the categorical axis page in the user guide, how would one change the orientation of the level of labels including "Apples," "Pears," etc.? Thanks for providing and supporting this amazing tool!

--
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/9b8684a3-bb39-4b9c-81b0-3c962467700b%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