import matplotlib.pyplot as plt
from numpy import random

fig = plt.figure()
ax = fig.add_subplot(111)
x = random.rand(100,1)
y = random.rand(100,1)
ax.plot(x,y)
for i in range(len(x)):
    ax.text(x[i],y[i],str(i))
plt.show()