Memory leak - canvas.draw() + pyqt4

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_veleshki@...337...> wrote:

------------------------------
Message: 7
Date: Sat, 08 Oct 2011 21:22:45 +0400
From: ??? ???<stoqn_veleshki@...337...>
Subject: [Matplotlib-users] Memory leak - canvas.draw() + pyqt4
To:matplotlib-users@lists.sourceforge.net
Message-ID:<E1RCabl-0002HQ-00.stoqn_veleshki-mail-ru@...3815...>
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
Fixes a memory leak where each spines' path was a view of the spine path by mdboom · Pull Request #89 · matplotlib/matplotlib · GitHub?
?? 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.