I'm producing series of plots (spectograms) in a program loop using imshow
and saving each plot to .png. Even though I close() each plot after each
savefig(...), the memory does not appear to be freed up, and the memory
useage goes up and up as the program runs (and stalls the computer as it
thrashes the page file).
This is the essence of the code:
for i in range(..):
pylab.imshow(logPSDs[i]...)
pylab.colorbar()
pylab.savefig(plotName[i])
pylab.close()
Is there anything that I should be doing to stop this memory "wastage"?
(The plots themselves are fantastic!)
UNITED GROUP
This email message is the property of United Group. The information in this
email is confidential and may be legally privileged. It is intended solely for
the addressee. Access to this email by anyone else is unauthorised. If you are
not the intended recipient, you may not disclose, copy or distribute this
email, nor take or omit to take any action in reliance on it. United Group
accepts no liability for any damage caused by this email or any attachments due
to viruses, interference, interception, corruption or unauthorised access.
If you have received this email in error, please notify United Group
immediately by email to the sender's email address and delete this document.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users