increase axis ticks pyplot

Solutions on MaxInterview for increase axis ticks pyplot by the best coders in the world

showing results for - "increase axis ticks pyplot"
Jan
22 Aug 2020
1x = [0,5,9,10,16]
2y = [0,1,2,3,5]
3
4x_ticks = np.arange(0, 16, 5)
5plt.xticks(x_ticks)
6
7y_ticks = np.arange(0, 5, 2)
8plt.yticks(y_ticks)
9
10plt.plot(x, y)