Re: [Matplotlib-users] error in savefig with wxAgg backend

2008-03-03 Thread Michael Droettboom
What version of matplotlib are you using? I have a vague recollection that this was fixed at one point. In any case, you should be able to get around this by casting your filename to a string as such: self.figure.savefig(str(image_file)) Hope that works for you, Mike Jeff Peery wrote:

Re: [Matplotlib-users] error in savefig with wxAgg backend

2008-03-03 Thread Jeff Peery
Hi Mike, thanks for the tip. I will try it. I'm using 0.91.2. Thanks, Jeff -Original Message- From: Michael Droettboom [mailto:[EMAIL PROTECTED] Sent: Monday, March 03, 2008 5:06 AM To: [EMAIL PROTECTED] Cc: matplotlib-users@lists.sourceforge.net Subject: Re: [Matplotlib-users] error

[Matplotlib-users] error in savefig with wxAgg backend

2008-02-29 Thread Jeff Peery
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