[Matplotlib-users] Memory leaks in a web application

2009-02-08 Thread A B
Hi, Following is my post to the Django mailing list from yesterday. The response was that Django isn't known to leak memory so there should be something off with matplotlib or rather that way I am using it. Hopefully someone here could comment on what could be causing the leaks. Thanks in advance.

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

2009-02-09 Thread A B
Thank you very much, Jouni. Pyplot.close() seems to have done the trick. I followed your advice and converted my code to use the OO interface. But I'm not sure how I close the figure in OO ... Any pointers? Thanks. -- Crea

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

2009-02-10 Thread A B
On Mon, Feb 9, 2009 at 9:59 PM, Jouni K. Seppänen wrote: > Ryan May writes: > > > On Mon, Feb 9, 2009 at 2:37 PM, A B wrote: > > > > If you're using the full OO interface and creating a figure by making an > > instance of Figure(), then you shouldn't ne

[Matplotlib-users] plot() in a loop vs multiple curves with a single plot()

2009-02-10 Thread A B
Hi, I have the following code and am wondering whether there is a more efficient way to plot multiple curves. Maybe somehow accumulating the data into a single variable, then calling plot once ... Thanks for any ideas. for ofile in files: d = mlab.csv2rec(ofile, names = ['date','field'])