Hi all,
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.
Gary R.
imsave.py (2.47 KB)
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
http://matplotlib.sourceforge.net/examples/api/agg_oo.html
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.
http://matplotlib.sourceforge.net/faq/howto_faq.html#contributing-howto
JDH
ยทยทยท
On Fri, Feb 6, 2009 at 8:34 AM, Gary Ruben <gruben@...636...> wrote:
Hi all,
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.