John,
loving matplotlib - thx.
Was using pcolor today but needed a gray colormap rather than jet. Made my own version (see attached) using a class Colormap with attribute color (which can be set to 'jet'). Seemed a bit more adaptable and more like matlab. I linked ColormapJet back to this class so that other people's code wont break (hopefully ). Probably worth allowing users to supply there own as an array too, but I didn't have time to do that today.
On a different topic slightly, I wonder if it would be worth having a plot type based on image widgets. For large arrays pcolor is still very slow under gtk. Maybe either using image widgets for pcolor itself or having a different plot type (like matlabs 'image' or 'imagesc').
all the best
Jon
colormap.py (3.01 KB)
···
--
Jon Peirce
Nottingham University
+44 (0)115 8467176 (tel)
+44 (0)115 9515324 (fax)