I am using matplotlib to produce a big number(16000) of charts and am facing a steady memory leak. my code sofar looks like:
while(1):
fig=PL.figure(1)
…plot some things…
fig.clf()
PL.close()
am i missing something?
Laurent
I am using matplotlib to produce a big number(16000) of charts and am facing a steady memory leak. my code sofar looks like:
while(1):
fig=PL.figure(1)
…plot some things…
fig.clf()
PL.close()
am i missing something?
Laurent
What backend are you using -- some of the GUI backends have known
leaks that are outside the control of mpl. So you may want to use the
agg backend (or ps, etc.). If you still gt a leak, consult the memory
leak FAQ and follow instructions there
http://matplotlib.sourceforge.net/faq.html#LEAKS
On Wed, Jul 2, 2008 at 2:56 PM, laurent oget <laurent@...2078...> wrote:
I am using matplotlib to produce a big number(16000) of charts and am facing
a steady memory leak. my code sofar looks like:while(1):
fig=PL.figure(1)
..plot some things..
fig.clf()
PL.close()am i missing something?