☰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

Xaxis/yaxis bokeh theme

Community Supportthemebokeh
sarahc
sarahc

Is it possible to modify the xaxis and yxaxis with a bokeh theme yaml file as
I don’t want the same style for both?

I tried to replace Axis with Xaxis but it doesn’t seem to work.

attrs:
    Figure:
        background_fill_color: '#2F2F2F'
        border_fill_color: '#2F2F2F'
        outline_line_color: '#444444'
    Axis: 
        axis_line_color: red
⌁   Link to post
Bryan
Bryan

Not presently. Currently all theme values are applied based on type, so the values apply identically to every object of that type. There have been some discussions in the past about possibly extending this in various ways, but to date nothing has been implemented. If you want different properties for different axes, then at least some of those values will have to be set via code.

⌁   Link to post

End of archived discussion · Replies are disabled