Memory usage

Hi All,

Doing multiple plots I see that memory usage grows and grows.

Before doing a new plot I do "self.figure.clear()", or "self.figure.clf()", is there some other call I should use?

See you
Werner

Hi All,

I put a small test case together based on wxcursor_demo. When clicking the button1 it should show a new plot, but it does not.

I think my memory issue has to do with this as I created a new self.canvas each time, instead of doing a clear, but the big question is what do I need to call to show the new plot.

So, I am obviously missing something.

Any hints are appreciated.

See you
Werner

Werner F. Bruhin wrote:

wxcursor_demoWClear.py (4.44 KB)

ยทยทยท

Hi All,

Doing multiple plots I see that memory usage grows and grows.

Before doing a new plot I do "self.figure.clear()", or "self.figure.clf()", is there some other call I should use?

See you
Werner

-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click