From: John H. <jdh...@ac...> - 2005-11-02 04:28:42
|
>>>>> "Perry" == Perry Greenfield <pe...@st...> writes: Perry> Before you go off in this direction, could you outline how Perry> you think colormaps should work? From the sounds of it, you Perry> are addressing mostly cases where users have specifically Perry> picked colors and you would like colorbar() to work with Perry> the selected colors. Generally speaking, you seem to be Isn't this closely related to the idea we've tslked about a number of times (mostly off list) to supplant the colormap infrastructure with a "DiscreteColormap" or something along those lines, which mapped data to a set of discrete colors, using nearest neighbor or what have you. Then you would have the best of both worlds: your favorite colors and consistency with the mpl colorbar/colormapping API. Would this work? JDH |