Re: [Matplotlib-users] Creating a new colormap based on a cmap from matplotlib.cm?

2011-10-14 Thread Yoshi Rokuko
+ Keith Hughitt -+ Hi all, Does anyone know of a good way to create a new LinearSegmentedColormap based off an existing one? I have a function which attempts to generate N optimal color map indices for a given data array. In cases

[Matplotlib-users] Creating a new colormap based on a cmap from matplotlib.cm?

2011-10-11 Thread Keith Hughitt
Hi all, Does anyone know of a good way to create a new LinearSegmentedColormap based off an existing one? I have a function which attempts to generate N optimal color map indices for a given data array. In cases where the number of values specified in _segmentdata is the same as N, then I can