I have two lists, when I plot with the following code, the x axis only shows up to 12 (max is 15). May I know how can I show all of the values in x list to the x axis? Thank
Add this:
ax1.set_xticks(np.arange(len(x)))
To your code before your ax1.set_xticklabels(x) call. Is that what you're looking for?
ax1.set_xticklabels(x)