fig = pyplot.figure()
ax = fig.add_subplot(111)
ax.set_ylim(0, 10)
pyplot.plot(x, y)
for i, j in zip(x, y):
    ax.annotate(str(j), xy=(i, j))
pyplot.show()
Writing numerical values on the plot with Matplotlib