I have a numpy array and i'm trying to plot it with a scatter plot using matplotlib.
from matplotlib import pyplot as plt
from matplotlib import pylab as pl
pl.plot(matrix[:,0],matrix[:,1], 'ro')
This gives me something like :

Now i want to replace the red dots by a number correspondig to the index of the row in the numpy array. How could i do it ?
Thank you !

