From: Reinier H. <re...@he...> - 2009-08-12 22:34:15
|
Hi all, I would like to propose the attached patch to be able to use a gamma value for color maps. This will make it simple to make your color scale more 'sensitive' at the bottom or at the top, as can be seen in the attached example. This could in principle also be solved by adding a gamma normalizer, but I think that applying it to a color map is quite coming practice, so in this case the preferred way. I'd also like to add a few extra color maps (at least one plain blue-white-red and one with darker shades at the high and low ends, as in the attachment). I also remember a particular one ('terrain') in a measurement program called 'Igor' that would be nice. Looking at _cm.py, I would guess that could be done a bit more efficient than the current 5880 lines as well by just specifying a few colors and using LinearSegmentedColormap.from_list(). Is it ok if I try to refactor that? Let me know what you think. Cheers, -- Reinier Heeres Tel: +31 6 10852639 |