From: John H. <jd...@gm...> - 2008-03-21 19:45:54
|
On Fri, Mar 21, 2008 at 2:34 PM, Kenneth Miller <xke...@gm...> 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 |