[英]Bokeh can't set axis ticks font
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
.文本属性都有像text_font_size
这样的基本名称,然后也可能有像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
. (在这种情况下, major_label
是“主要刻度的标签”)所以所有正确的属性名称是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 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 https://docs.bokeh.org/en/latest/docs/user_guide/styling.html
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.