2010/12/12 Russell Owen <ro...@uw.edu>:
> Simply creating a blank Axes and calling canvas.draw() leaks memory -- even 
> without displaying any data or shifting the x axes.

Okay, as a workaround have you tried ax.clear()?

So the example script provided by you can be boiled down further?

I'm using ax.clear() in a layered approach very extensively and have
never noticed memory leaks with this.  I'm having a Layer object which
can be fed by data, and when the data changes, it automatically will
trigger an ax.clear() in the host stack, and then everything is
redrawn.  Not the fastest, but fast enough.

Friedrich

------------------------------------------------------------------------------
Oracle to DB2 Conversion Guide: Learn learn about native support for PL/SQL,
new data types, scalar functions, improved concurrency, built-in packages, 
OCI, SQL*Plus, data movement tools, best practices and more.
http://p.sf.net/sfu/oracle-sfdev2dev 
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to