Re: [Matplotlib-users] Memory leaks in a web application

2009-02-10 Thread Gerry Steele
g the call to "plt.close(fig)". > > If you instantiate the figure and canvas directly (as in the agg_oo.py > example), you won't have this issue. > > Mike > > Gerry Steele wrote: >>>> >>>> instance of Figure(), then you shouldn't need to c

Re: [Matplotlib-users] Memory leaks in a web application

2009-02-10 Thread Gerry Steele
the call to savefig around 600MB is consumed. In my view the code in the loop should execute in constant space without growth at all. Note that when the function returns the memory seems to be deallocated so if you check the ram use during the sleep you should see this. Any ideas on this? --