Re: [Matplotlib-users] changing the shade of a color depending on a value

2013-02-27 Thread Paul Hobson
On Wed, Feb 27, 2013 at 1:49 AM, Rita wrote: > Hi, > > I am currently plotting cpu utilization over time (plot_time). I would > like the color of my line to be red when at 100%. 80-90% a bit less red, > more yellow, and lower numbers will be green. Any thoughts of doing this? > A few years ago,

Re: [Matplotlib-users] changing the shade of a color depending on a value

2013-02-27 Thread Jakob Gager
Hi have a look at http://matplotlib.org/examples/pylab_examples/multicolored_line.html and http://matplotlib.org/examples/pylab_examples/show_colormaps.html. br Jakob On 02/27/2013 10:49 AM, Rita wrote: > Hi, > > I am currently plotting cpu utilization over time (plot_time). I would like > the

Re: [Matplotlib-users] changing the shade of a color depending on a value

2013-02-27 Thread Phil Elson
Joe Kington's answer is the best solution I've seen to this problem: http://stackoverflow.com/questions/13622909/matplotlib-how-to-colorize-a-large-number-of-line-segments-as-independent-gradi There is also an example in the gallery: http://matplotlib.org/examples/pylab_examples/multicolored_lin

[Matplotlib-users] changing the shade of a color depending on a value

2013-02-27 Thread Rita
Hi, I am currently plotting cpu utilization over time (plot_time). I would like the color of my line to be red when at 100%. 80-90% a bit less red, more yellow, and lower numbers will be green. Any thoughts of doing this? -- --- Get your facts first, then you can distort them as you please.-- -