问题
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