Re: [matplotlib-devel] Saving animations

2012-04-07 Thread Benjamin Root
On Sat, Apr 7, 2012 at 1:34 PM, Tony Yu wrote: > I've been using the animations subpackage since it was introduced, but I > only recently tried to save an animation using the `save` method. > Unfortnately, I get a RuntimeError whenever I try to use it: > > ... > File > "/Users/Tony/python/devel

[matplotlib-devel] PATCH: Accept color/alpha in imsave

2012-04-07 Thread Jostein Bø Fløystad
I've had problems saving MxNx3 (RGB) numpy arrays as images using imsave. It fails with an exception, and the problem seems to be line 1243 in image.py: figsize = [x / float(dpi) for x in arr.shape[::-1]] The purpose of arr.shape[::-1] seems to be to reorder the height and width dimensions. It wo