From: matthew a. <ma...@ca...> - 2004-03-05 06:01:12
|
On Thu, 4 Mar 2004, matthew arnison wrote: > * if I savefig('file.eps') from the TkAgg backend, the EPS file is sized > to something much bigger than A4 (but it still works fine from the GTK > backend) I've just found I've had similar problems saving EPS figures from the GTK backend of matplotlib 0.51 too. Plus TkAgg doesn't like it if you close a plot using the window close box (not the X in the toolbar): [I have TkAgg as my default backend in ~/.matplotlibrc and interactive set to True] $ python Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from matplotlib.matlab import * >>> x = arange(0.0, 3.14, 0.01) >>> plot(x, sin(x)) [<matplotlib.lines.Line2D instance at 0x84143b4>] ... click on window close button (not toolbar close button) ... >>> plot(x, sin(x)) Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/matplotlib/matlab.py", line 788, in plot draw_if_interactive() File "/usr/lib/python2.2/site-packages/matplotlib/backends/backend_tkagg.py", line 46, in draw_if_interactive figManager.show() File "/usr/lib/python2.2/site-packages/matplotlib/backends/backend_tkagg.py", line 121, in show self.window.deiconify() File "/usr/lib/python2.2/lib-tk/Tkinter.py", line 1343, in wm_deiconify return self.tk.call('wm', 'deiconify', self._w) TclError: can't invoke "wm" command: application has been destroyed m. |