On Fri, Mar 21, 2008 at 2:34 PM, Kenneth Miller <[EMAIL PROTECTED]> wrote:


>  So i've experimented with pcolor, and it's not really what I'm looking
>  for. What I'm attempting to do is plot some XY coordinates, just a
>  simple function, with the line being colored differently depending on
>  the value of that function. So if perhaps you were plotting
>  temperature vs time, you'd see the line change to red when it
>  approached higher temperatures and blue when it approached lower
>  temperatures.


The "multi-colored line" recipe should be enough to get you started:

  http://www.scipy.org/Cookbook/Matplotlib/MulticoloredLine

JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to