Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bokeh can't set axis ticks font

Tags:

python

bokeh

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.

like image 405
user2366975 Avatar asked Jul 26 '14 12:07

user2366975


1 Answers

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

like image 108
bigreddot Avatar answered Nov 14 '22 10:11

bigreddot