Hi Stoyan, I had this problem, refer to http://sourceforge.net/mailarchive/forum.php?thread_name=1315605880.26850.7.camel%40GARDEN&forum_name=matplotlib-users
It was dismissed as a code error (which I would perhaps dispute). You have two options:- - Adopt the approach seen here: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_qt4.html - Or use the work around: import matplotlib # Free memory matplotlib.pyplot.close() Regards Matt Earnshaw On Sat, Oct 8, 2011 at 9:22 PM, <stoqn_veles...@mail.ru> wrote: > ------------------------------ > Message: 7 > Date: Sat, 08 Oct 2011 21:22:45 +0400 > From: ????? ???????<stoqn_veles...@mail.ru> > Subject: [Matplotlib-users] Memory leak - canvas.draw() + pyqt4 > To:matplotlib-users@lists.sourceforge.net > Message-ID:<e1rcabl-0002hq-00.stoqn_veleshki-mail...@f263.mail.ru> > Content-Type: text/plain; charset="utf-8" > > Memory leak - canvas.draw() + pyqt4 > Hi, my name is Stoyan. > ??? I use the following packages: python 2.6 , PyQt 4.8.5-1, numpy 1.6 and > matplotlib 1.0.1. In my program Matplotlib library I have used a GUI > application created by "PyQt". In the program there is a loop that updates a > graph by calling: > ?self.fig.canvas.draw() > ?? But every time the graph is updated, the memory usage goes up.I the > address listed bellow there is an explanation of the reason for the issue > however, even though > https://github.com/matplotlib/matplotlib/pull/89? > ?? I have followed all instructions that have been specified in link,there is > still a flaw in the programme due to a memory leak, though not a big one.?? I > wondere whether there is alternative way to discharge this leak of memory and > if so could you assist in solving it. ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users