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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to