From: John W. <was...@gm...> - 2007-05-06 22:34:10
|
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 |