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
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
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
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
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