Use plt.xticks(x)
. See the documentation.
Note that using only the input values for ticks will usually be confusing to a viewer. It makes more sense to use evenly spaced ticks.
Use plt.xticks(x)
. See the documentation.
Note that using only the input values for ticks will usually be confusing to a viewer. It makes more sense to use evenly spaced ticks.