how to adjust # of ticks on Bokeh axis (labels are overlapping on small figures)

前端 未结 2 1676
独厮守ぢ
独厮守ぢ 2021-02-04 06:27

I have a multi-figure Bokeh plot of vertically stacked & aligned figures. Because I want to align the plots vertically, the y-axis labels are rotated to be vertical rather

2条回答
  •  难免孤独
    2021-02-04 06:32

    You can control the number of ticks now with desired_num_ticks property. Look at the example from the bokeh docs (and this issue).

    For example, in your case, something like this: plot.yaxis[0].ticker.desired_num_ticks = 10.

提交回复
热议问题