Hello,

I'm trying to use savefig in my wx app and I'm using wxAgg backend. I'm
getting this error:

 

FILE .maplotlib\backends\backend_bases.py, line 397 in print_png

Self.get_renderer()._renderer.write_png(filename, self.figure.dpi.dpi.get())

TypeError: cannot return std::string from Unicode object

 

I'm simply calling this:

 

self.figure.savefig(image_file,

                            facecolor='w',

                            edgecolor='w')

 

How do I fix this problem? Thanks.

 

Jeff

 

 

 

-------------------------------------------------------------------------
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