Hi all,I usually use MPL embedded in wx, so I haven't noticed these before but with the pylab window:
1) A couple icons seem to be missing. See screenshot enclosed.2) The save button doesn't work, as I get a "cannot return std::string from a Unicode object" error. This is with a unicode build of wxPython. I've had this same problem with my code. This issue is that the savefig code can't handle unicode (regular old fopen, I think). Here are two solutions:
1) use: filename.encode('ASCII', 'replace')on the string before using it, so that you'll get an odd name with non-ascii charactors but at least it will work.
2) Use: F.savefig(open(path, "w"), dpi=dpi)Python's open allows unicode filenames, and I was told that recent versions of MPL can take a file, rather than just aname, without an unacceptable performance hit, though in my code, without the latest MPL, I get an invalid PNG.
thanks, -Chris -- 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]
<<inline: MPL_wx.png>>
------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel