Hi, > I haven't tried it, but maybe it's to do with the fact that you're > quantising the colourmap to 256 values; I think matplotlib computes the > exact rgb values using interpolation. If the only reason you're using > PIL is to get a .bmp file, maybe you could save the file straight from > matplotlib as a .png then externally convert it to a .bmp
I thought so until I put in cm.jet[255] and it maxed out. The granularity of the 255 colours that I get from exporting the RGB values is more than enough for the ranges of data I use. So I am happy with that. I am using PIL because I plan to plug in a Tkinter interface which can directly accept PIL image instances. Ciarán ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users