I want to show the (x,y) axis of points from a 2d array in a plot.
I know that by the following codes I can draw the points
import matplotlib.pyplot as plt
plt.plot([1,2,3,4], [1,4,9,16], 'ro')
plt.axis([0, 6, 0, 20])
plt.show()
Which show me this picture: output of the above code
However, I want to show the x,y of each point near to them in the plot. Something like this Which I am looking
Thank you very much in advance.