Python bokeh show only every second categorical ticker

微笑、不失礼 提交于 2020-01-06 03:51:06

问题


How can I set for a CategoricalAxis not to show every ticker but just every second or third one? Let say I have 20 categorics on x-axis. I tried this but it does not work:

ticker = CategoricalTicker(desired_num_ticks=10)
xaxis = CategoricalAxis(ticker=ticker)
my_fig.add_layout(xaxis, 'above')

It shows all my tickers :(


EDIT: It would be great to show only every second label as well...

Thank you!

来源:https://stackoverflow.com/questions/34949298/python-bokeh-show-only-every-second-categorical-ticker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!