Memory problem with savefig

Pietro,

Are you sure it is savefig() that is using memory? Try
commenting out close(). In my case it solved a memory
problem with batch processing. See recent list postings
for more details. You may need to add clf() or cla() to
avoid overplotting.

Please let the list know if it works for you without
close() and your matplotlib version to help developers
track down memory leaks or related issues.

Good Luck,

-- David

Date: Thu, 21 Apr 2005 07:32:13 -0700 (PDT)
From: Pietro Speroni di Fenizio <pietrosperoni@...9...>
To: matplotlib-users@lists.sourceforge.net
Subject: [Matplotlib-users] Memory problem with savefig

Hello, I have been using Matplotlib lately for some
academic research. It seem to work just fine. The only
serious problem is a problem with memory. When I run

.
.
.

···

def PlotAreaOrganization(data,filename):
   keys=symbol2color.keys()
   keys.sort()
   colors=[]
   for key in keys: colors.append(symbol2color[key])
   fig=figure(dpi=75)
   area(data,colors)
   savefig(filename)
   close(fig)

Any suggestion? Is there any other way to save a
picture that might work better?

+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+_+

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com