If I plot something in matplotlib it chooses the spacing on y-axis by itself (where it puts ticks). How can I tell the axes to always end with an full tick and not in between two ticks?
If it choses to make a tick every 0.5, that the end is 2.0 and not a little bit higher than 2.0 with no tick.
import matplotlib.pyplot as plt
X = [1,2,3,4,5]
y = [0.1,0.3,2.4,3.9,3.2]
plt.plot(X, y)
plt.show()




