Hi,
See the bug here (and the answers) :
http://www.mail-archive.com/[EMAIL PROTECTED]/msg02348.html
From the last answer it appears this was fixed after 0.91.2
It affects saving png's (other formats work) from the GUI, but savefig()
should work.
Vincent
--
Vincent Favre-
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] err
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:
> Hell
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 o