|
From: John H. <jd...@gm...> - 2011-09-15 15:12:11
|
On Fri, Sep 9, 2011 at 5:04 PM, Matt Earnshaw <ma...@ea...> wrote: > Hi all, > > I am encountering a memory leak type issue when running the following, > for example. > > http://codepad.org/TNuCLT3k > > Matplotlib version: 0.99.3 > PyQt4 Version: 4.8.5 > > I found a thread in the archive relating to this issue which supposedly > disappeared upon updating to PyQt 4.8.4 (I trust it would not have been > reintroduced in going to .5). > > Can someone confirm or deny replication of this issue with their setup > and/or offer a solution? This doesn't look like a leak, it looks like code error. You are creating unlimited numbers of figures w/o closing the old ones. And the use of pyplot with GUI code is not supported. You need to use the "embedding_in*qt*.py approach. See the examples at http://matplotlib.sourceforge.net/examples/user_interfaces/index.html |