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
Gary R. Ciarán Mooney wrote: > Hi, > > I am trying to create an image from an array using PIL, numpy and a > colourmap from matplotlib. <snip> > I'd like to get something that looks the same. I don't think the > problems are because of the colourmap but rather because of my log > scaling. Could someone please explain how matplotlib scales the image > to make it look so nice? > > Regards, > > 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