I would like to classify the x-axis with intervals of 2. x = [0, 1, 3, 4, 6, 7, 9, 10, 12, 13, 15,16, 18, 19, 21, 22, 24] I used the code below, but it didn't work plt.xticks(np.arange(0,25,2)) x = [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24] Thank you in advance for your help Continue reading...