modify label properties of nested category axis

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!

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!

1 Like

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!

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 <[email protected]> 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 [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/9b8684a3-bb39-4b9c-81b0-3c962467700b%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.