Memory leak - canvas.draw() + pyqt4

Hi Stoyan,

I had this problem, refer to

It was dismissed as a code error (which I would perhaps dispute).

You have two options:-

- Adopt the approach seen here:

- Or use the work around:
import matplotlib
# Free memory

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
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:
?? 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.