Re: [Matplotlib-users] applying colormap to a line

2011-04-01 Thread Stan West
From: Nat Echols [mailto:nathaniel.ech...@gmail.com] Sent: Thursday, March 31, 2011 16:47 I'd like to divide the line segments up to get a smoother color gradient, but the values are dictated by the experiment, not a mathematical function. snip so I guess what I'm really asking for is a way

[Matplotlib-users] applying colormap to a line

2011-03-30 Thread Nat Echols
I wanted to display a line plot with rainbow coloring based on the y-value, similar to what's possible for surface plots. However, the 'plot' method does not appear to accept a 'cmap' argument. The closest thing I was able to find was a recipe for different colored line segments on the SciPy

Re: [Matplotlib-users] applying colormap to a line

2011-03-30 Thread Eric Firing
On 03/30/2011 01:32 PM, Nat Echols wrote: I wanted to display a line plot with rainbow coloring based on the y-value, similar to what's possible for surface plots. However, the 'plot' method does not appear to accept a 'cmap' argument. The closest thing I was able to find was a recipe for