axis().major_tick_label_font ="times"
axis()[0].major_tick_label_font ="times"
axis().major_tick_font ="times"
xaxis().major_tick_font ="times"
Nothing worked. How to set the font of the ticks? Not the axis label, but the ticks label.
The names of some of the properties are unfortunately a little overly verbose. Text properties all have basic names like text_font_size
and then that may also have a prefix like major_label
. (In this case, major_label
is the "label for a major tick") So all together the proper attribute name is major_label_text_font
.
You can see an example that sets similar properties here:
https://docs.bokeh.org/en/latest/docs/user_guide/styling.html#axes
And there is information in the docs about general properties here:
https://docs.bokeh.org/en/latest/docs/user_guide/styling.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With