On Sat, May 17, 2008 at 3:49 PM, Rodney Haynie <[EMAIL PROTECTED]> wrote:

> "C:\Python25\lib\site-packages\matplotlib-0.91.2.0001-py2.5-win32.egg\matplo
> tlib\backends\backend_agg.py", line 397, in print_png
>    self.get_renderer()._renderer.write_png(str(filename),
> self.figure.dpi.get())
> RuntimeError: Could not open file <open file '<stdout>', mode 'w' at
> 0x00A0F068>

I believe this has been fixed on the maintenance branch (which will
become 0.91.3 shortly after the next release).  You can get a svn
checkout of this branch at

svn co  
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint
 mpl91

Michael, I notice in the code we have:

        if type(filename_or_obj) in (str, unicode):
            filename_or_obj = open(filename_or_obj, 'w')

is there any reason not to use cbook.is_string_like here, which should
be more general?

Thanks,
JDH

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to