Reputation: 417
I am attempting to show all x-axis values when I plot a line-graph in Bokeh.
Currently, the output is as follows;
The x-axis range is from 0-10, and I would like all to be displayed.
I have seen in a previous solution that p.yaxis.major_label_orientation = "vertical"
worked for the y-axis. However this was unsuccessful for the x-axis.
Any assistance that anyone could provide would be greatly appreciated.
Upvotes: 1
Views: 2325
Reputation: 34618
Use:
p.xaxis.ticker = list(range(1, 12))
or the more explicit:
p.xaxis.ticker = FixedTicker(ticks=list(range(1, 12))
Upvotes: 3