|
From: Vidar G. <vid...@37...> - 2005-07-01 22:27:19
|
i would like to add colorbrewer colormaps to matplotlib, at least for my personal use, but i would like to do this properly so that this can be used by others. ColorBrewer: http://www.personal.psu.edu/faculty/c/a/cab38/ColorBrewerBeta2.html any hints on where to start? start with the cm.py module? extend cm.py or create a stand-alone one? the ColorBrewer palettes could be addressed by something like one of the following, i guess?: cmap=cm.colorbrewer.PuBuGn cmap=colorbrewer.PuBuGn the colorbrewer palettes are specified by 3 to 9 rgb colors, each interpolated differently, how many of these points would be preferred in a matplotlib module? ...or even all of them, assuming 5seq as a default (when using the above): cmap=cm.colorbrewer.PuBuGn.3seq cmap=cm.colorbrewer.PuBuGn.9seq |