changing colors of scatter elements

Hello all,

I'm trying to create a plot in each element in my x,y array have a
slightly different color - using spectral for example.

My data is a time series, but I am not plotting the time series. I
want the older data to show up in a different color from the latest
data.

What I have so far is:

Y,y=rawD[:,7],rawD[:,i]
f=subplot(m,n,pltn)
colors=cm.spectral(linspace(0,1,len(Y)))
scatter(y,Y,2,cmap=colors)

pltn ,m, n are just iterators...

What am I doing wrong? I feel like I need to change somethig for the
cmap definition. I've tried iterating through Y and creating a scatter
plot for each pair, then assigning the color from colors[i], but that
crashes. Apparently you cannot scatter(x,y) where x,y are single
values.

Thanks!
.john