I also recently posted an example that may do something similar to what you
are after, you can have a look here:
http://www.nabble.com/contribute-to-gallery--Or%2C-just-advice-on-changing-colors-automagically-td24419101.html#a24427781
per freem-2 wrote:
Hi all,
i would like to set
Hi all,
i would like to set the colors of the lines i plot (using the plot function)
to go from red to blue, in evenly spaced interval. that is, imagine a color
map from red to green, where i plot n-many lines, each receiving a color
from this color map, starting at the red end and going to
Not too long ago, I posted an example of this to the list. The code
near the bottom of that thread is a little more general than the one
at the top and shows, three different ways to cycle through the colors
of a colormap.
Hope that helps,
-Tony
On Jul 14, 2009, at 9:51 AM, per freem
Hi Tony,
thanks for the pointer. that code does not run for me, it generates the
following error:
ttributeErrorTraceback (most recent call last)
color_cycle.py in module()
63 if __name__ == '__main__':
64 n_lines = 10
--- 65
On Jul 14, 2009, at 3:12 PM, per freem wrote:
Hi Tony,
thanks for the pointer. that code does not run for me, it generates
the following error:
ttributeErrorTraceback (most recent call
last)
/Library/Python/2.5/site-packages/matplotlib/rcsetup.pyc