|
From: Ciarán M. <gen...@go...> - 2010-03-20 22:23:11
|
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 |