Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-12 Thread Stephan Markus
Calling the garbage collector (gc.collect()) also makes no difference. Even deleting all references manually and dropping the toolbar code doesn't do the trick. Am 09.02.2010 16:19, schrieb Stephan Markus: > I already had my destroy() method look like this: > > def destroy(self): > se

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-09 Thread Stephan Markus
I already had my destroy() method look like this: def destroy(self): self.f.clf() Tix.Frame.destroy(self) self.toolbar.destroy() self.canvas._tkcanvas.destroy() But it makes no difference. Stephan Am 08.02.2010 17:15, schrieb Michael Droettboom: > Have you t

Re: [Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-08 Thread Michael Droettboom
Have you tried explicitly calling .clf() on the matplotlib Figure object from your Tix.Frame.destroy callback? Mike -- The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data

[Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-08 Thread Maximilian Mauer
 Hello! I'm writing an application that will show different plots on it's GUI. In order to switch between the different plot types I'd like to destroy the first plot and to create a new afterwards. I stumbled into a memory leak since I don't know how to close matplotlib figures the clean way. I wro

[Matplotlib-users] Memory leak when destroying Tk frame containing a figure

2010-02-04 Thread Stephan Markus
Hello! I'm writing an application that will show different plots on it's GUI. In order to switch between the different plot types I'd like to destroy the first plot and to create a new afterwards. I stumbled into a memory leak since I don't know how to close matplotlib figures the clean way. I w