|
From: Eric F. <ef...@ha...> - 2009-08-23 18:24:22
|
Dr. Phillip M. Feldman wrote: > I've been trying to understand how colormaps work. I've been through the > Matplotlib User's Guide (Release 0.98.6svn, dated June 14, 2009), but the > section on colormaps has not yet been written. If anyone can point me to This is my fault; I need to write that. > documentation or provide an explanation, I'd be grateful. This may help: http://matplotlib.sourceforge.net/api/colors_api.html http://matplotlib.sourceforge.net/api/cm_api.html and this: http://matplotlib.sourceforge.net/examples/pylab_examples/custom_cmap.html Beware: the posted docs are current, so may include functions that are not in the version of mpl you have installed. If you search for "cmap" using the search box in the doc webpage sidebar, you will get many more examples of the use of colormaps. Browsing these examples may be the quickest way of getting the basic ideas of how cmaps (and their partners, norms) are used. Looking at the source code is also helpful. Eric |