matplotlib change axis ticks code example
Example 1: increase axis ticks pyplot
x = [0,5,9,10,16]
y = [0,1,2,3,5]
x_ticks = np.arange(0, 16, 5)
plt.xticks(x_ticks)
y_ticks = np.arange(0, 5, 2)
plt.yticks(y_ticks)
plt.plot(x, y)
Example 2: matplotlib custom ticks
axis.set_yticks([0.5,0.6,0.7,0.8,0.9,1.0])