On Mon, Dec 8, 2008 at 1:25 PM, Chad Kidder <[EMAIL PROTECTED]> 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

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to