From: John H. <jd...@gm...> - 2008-12-08 19:47:17
|
On Mon, Dec 8, 2008 at 1:25 PM, Chad Kidder <cck...@gm...> wrote: ------------------- > Instead of getting a grayscale plot out, I'd like to use a colormap > like jet() or winter(). Any ideas there? How about? import matplotlib.cm as cm for ii in range(nlines): color = cm.jet(z[ii]) p.plot(x,y[ii,:],color=color) All of the mpl colormaps are callable, so if you pass in a [0..1] normalized value they will return an RGB tuple JDH |