Re: [matplotlib-devel] Bug in imsave

2013-04-08 Thread gary ruben
ceil doesn't work for me I tried figsize = [np.ceil(x / float(dpi)) for x in (arr.shape[1], arr.shape[0])] and it fails on my second test when dpi=2 and i=25 result=26x26 Gary On 9 April 2013 07:03, Michael Droettboom wrote: > On 04/08/2013 02:38 PM, Benjamin Root wrote: > > > > > On Sun, Apr

Re: [matplotlib-devel] Bug in imsave

2013-04-08 Thread Michael Droettboom
On 04/08/2013 02:38 PM, Benjamin Root wrote: On Sun, Apr 7, 2013 at 4:39 AM, gary ruben > wrote: Hi, I haven't looked at this list for a long time, so hi to all the active devs. I just came across a problem in the image.py imsave() function. Prob

Re: [matplotlib-devel] Bug in imsave

2013-04-08 Thread Benjamin Root
On Sun, Apr 7, 2013 at 4:39 AM, gary ruben wrote: > Hi, I haven't looked at this list for a long time, so hi to all the active > devs. > I just came across a problem in the image.py imsave() function. > > Problem: > At an ipython --pylab prompt, typing > > a = rand(29,29) > imsave('test.png', a)

[matplotlib-devel] Bug in imsave

2013-04-07 Thread gary ruben
Hi, I haven't looked at this list for a long time, so hi to all the active devs. I just came across a problem in the image.py imsave() function. Problem: At an ipython --pylab prompt, typing a = rand(29,29) imsave('test.png', a) incorrectly generates a 28x28 pixel image. This happens for several