On Fri, Feb 6, 2009 at 8:34 AM, Gary Ruben <gru...@bigpond.net.au> 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.
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 ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users