hi i use python 2.5.1, wx-2.8-msw-unicode and matplotlib-0.91.1.win32-py2.5 package. the problem is that the wx.FileDialog return with an unicode string and the "self.get_renderer()._renderer.write_png()" will throw an exception: "TypeError: cannot return std::string from Unicode object"
stack trace: self.app.MainLoop() File "Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7865, in MainLoop wx.PyApp.MainLoop(self) File "Python25\Lib\site-packages\wx-2.8-msw-unicode\wx\_core.py", line 7226, in MainLoop return _core_.PyApp_MainLoop(*args, **kwargs) File "Python25\Lib\site-packages\matplotlib\backends\backend_wx.py", line 1699, in save os.path.join(dirname, filename), format=format) File "Python25\Lib\site-packages\matplotlib\backends\backend_wxagg.py", line 101, in print_figure FigureCanvasAgg.print_figure(self, filename, *args, **kwargs) File "Python25\Lib\site-packages\matplotlib\backend_bases.py", line 1196, in print_figure **kwargs) File "Python25\Lib\site-packages\matplotlib\backends\backend_agg.py", line 419, in print_png self.get_renderer()._renderer.write_png(filename, self.figure.dpi.get()) i think in print_png we must use "str(filename)" as we do it in print_raw, not "filename". ------------------------------------------------------------------------- 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-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel