[SciPy-User] label2rgb equivalent

Harald Schilly harald.schilly at gmail.com
Sat Apr 3 14:36:47 EDT 2010


On Sat, Apr 3, 2010 at 17:39, Zachary Pincus <zachary.pincus at yale.edu> wrote:
> matplotlib might have such a function,

matplotlib.cm generates scalable color maps. i.e. there is a set of
functions and you tell it how many steps should be generated.

http://matplotlib.sourceforge.net/api/cm_api.html

i.e. something like:

matplotlib.cm.datad.keys() lists you all registered map functions and
matplotlib.cm.get_cmap(...) gives you the colormap.

h



More information about the SciPy-User mailing list