Hi all,
I'm writing a little MPL embedded in wxPython app, and just ran into this:
Traceback (most recent call last):
...
...
"..../matplotlib-0.91.2-py2.5-macosx-10.3-fat.egg/matplotlib/backends/backend_agg.py",
line 397, in print_png
self.get_renderer()._renderer.write_png(filename,
self.figure.dpi.get())
TypeError: cannot return std::string from Unicode object
As soon as I saw it, I knew what happened: I'm running the unicode
version of wxPython, so the filename I got back from a SaveFile Dialog
is in unicode. Now, it's easy enough for me to turn that into a string
for now, but as more and more file systems are implemented in unicode,
it might be nice if we could use unicode file names with MPL.
Are there any plans along these lines? Or are we just going to have to
wait for py3k?
-CHB
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
[EMAIL PROTECTED]
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Matplotlib-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-users