Memory problem with savefig


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...>
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):
   for key in keys: colors.append(symbol2color[key])

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