I'm trying to plot a set of points, each point having a different color.

For the moment, I'm trying to do something like that :

for indice in range(0, points.shape[0]):

pl.plot(points[indice, 0], points[indice, 1], 'o', c = colours[indice,:], hold = True)

where points is a numpy array of point and colours is a numpy array of dimension (points.shape[0], 3)

With Matlab, something like this would function, but not in matplotlib, it tells me :

ValueError: need more than 0 values to unpack

I am missing something ?

Matthieu