Hi
I have a loop that updates a graph by calling
self.fig.canvas.draw()
But every time it updates the graph, the memory usage goes up. If the program
runs for one hour, the memory is gone (things start to run slow too). I've
tried to close() objects but the only thing that brings back the ram memory is
to close the whole application.
I have read this note in the documentation (but it applies to pyplot):
"If you are making a long sequence of figures, you need to be aware of one more
thing: the memory requiredfor a figure is not completely released until the
figure is explicitly closed with close(). Deleting all references to the
figure, and/or using the window manager to kill the window in which the figure
appears on the screen, is not enough, because pyplot maintains internal
references until close() is called."
What could I do in pyqt4 to release the memory?
Thanks
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users