While plotting the sinus of x for x in [0,2*pi] and plotting it using matplotlib, I did this:
x = np.arange(0,2*np.pi,0.1)
y = np.sin(x)
plt.plot(y)
plt.show()
but the result was
where the x-axis does not display the value of x, but the index of x in the array. How can I tell matplotlib.pyplot to give me the actual x-values (0.1, 0.2, ... pi, pi +0.1, .... 2*pi) as one would expect from a function?

