Hi, I like this, too.
However, I don't understand why it works at all. Usually, when I apply
a colormap, I need to take care about the scaling myself, i.e. divide
the range up into the number of elements to plot:
import pylab as pl
import matplotlib.cm as cm
xval = pl.arange(0, 20, 0.2)
n = 256
Pythonified wrote:
I have been trying to assign different colors for each line I plot, where
the colors are incrementally darkened (or lightened), or selected from a
colorbar (e.g. rainbow).
Any ideas?
I have found a simple and better way. One can chose from colors from a color
map:
On Mon, May 9, 2011 at 5:11 PM, Pythonified netdriverem...@gmail.comwrote:
Pythonified wrote:
I have been trying to assign different colors for each line I plot, where
the colors are incrementally darkened (or lightened), or selected from a
colorbar (e.g. rainbow).
Any ideas?
I
I have been trying to assign different colors for each line I plot, where the
colors are incrementally darkened (or lightened), or selected from a
colorbar (e.g. rainbow).
Any ideas?
--
View this message in context:
http://old.nabble.com/incremental-colors-for-lines-tp31546719p31546719.html