Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-02 Thread rugspin
Thanks Jae-Joon and Friedrich I will try out both solutions. Regards Hans Jae-Joon Lee wrote: > > On Tue, Jun 1, 2010 at 2:22 PM, rugspin wrote: >> That's doing it, thought there might be an internal way within >> matplotlib, >> but I could figure one. >

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread rugspin
.open(f) > f.close() > > IHTH, > > -JJ > > > On Tue, Jun 1, 2010 at 5:18 AM, rugspin wrote: >> >> >> >> Angus McMorland-2 wrote: >>> >>> On 31 May 2010 23:17, Angus McMorland wrote: >>> >>>> On 31 Ma

Re: [Matplotlib-users] imshow, imsave to PIL image conversion

2010-06-01 Thread rugspin
Angus McMorland-2 wrote: > > On 31 May 2010 23:17, Angus McMorland wrote: > >> On 31 May 2010 19:49, rugspin wrote: >> >>> >>> I have a small problem how to convert an image from matplotlib to PIL >

[Matplotlib-users] imshow, imsave to PIL image conversion

2010-05-31 Thread rugspin
I have a small problem how to convert an image from matplotlib to PIL right now doing somthing like this: -- from scipy import * from pylab import * from PIL import Image a = arange(16384).reshape(128,128) imsave( "test.png", a, cmap=cm.summer,vmin=0,vmax=