Yes, if it imports pyplot, we can't put it in the image module. But
you can easily rewrite your function to use the Agg backend as in
the agg backend will detect other extensions, like png, pdf, svg or ps
and do the right thing. So if you'd like to resubmit this as an svn
patch that doesn't use pyplot, I think it would be a useful addition.
On Fri, Feb 6, 2009 at 8:34 AM, Gary Ruben <gruben@...636...> wrote:
I've attached a candidate imsave() to complement imread() in the image.py
module. Would my use of pyplot instead of the oo interface preclude its
inclusion in image.py? Also, I noticed some problems when I ran the tests
with the Wx backends with mpl 0.98.5.2 in Win32. Both of the Wx backends
produce incorrect, but different, results.