bad screen distance
I'm trying to obtain an figure object (using matplotlib), inside a wxpython application. I don't need to plot (or see) the figure, because I would want only to save it in a png file.
When I do it using Windows XP, it is all okay, if I do it outside the wxpython application, for example inside sphinx documentation, it's all okay again. But If I do it inside my wxpython application... something goes wrong and it raises this:
_tkinter.TclError: bad scre开发者_开发技巧en distance "320.0"
Has someone any idea about?
Since you're trying to use wxPython and getting tkinter errors, you probably haven't told matplotlib to use wx. This can either be done in the matplotlibrc file, or in the program. Instructions are here.
精彩评论