Eric,

Exactly. Thanks for your post. I finally figured it out, and wanted to
post here for completeness in case no one followed up, but I'm glad
that you did. So yes, the following:

scatter(x, y, c=arange(len(x)), cmap=cm.spectral)

is exactly what I wanted... except that for my data I had:

Yvar1, Yvar2, Yvar3, ...
All data was plotted against Yvar1, and the first plot was Yvar1 vs.
Time. I wanted the colors for all the plots to be reflective of Time,
and consistently across the subplots, thus I had to define Time and
then use:

scatter(x, y, c=Time, cmap=cm.spectral)

However, I didn't try the arange function, I probably could've done
something like:

t=arange(Time)

scatter(x, y, c=t, cmap=cm.spectral)

Anyway, thanks again!
.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