> On Fri, Dec 22, 2006 at 02:15:42PM -0500, Alan G Isaac wrote: 
>> Just because the figure window is closed does not 
>> mean the figure is deleted.  Chris apparently 
>> maintains a reference to the figure? 

On Fri, 22 Dec 2006, [EMAIL PROTECTED] apparently wrote:
> I just save a PNG on hard drive and load it when needed.  I don't know 
> how to store a reference to PNG and/or if that would be a problem. 


All this is happening before your (final) save to the PNG 
file.  Somehow you are telling Matplotlib to plot repeatedly
to the same figure even though you want it to plot to 
different figures, if I have understood you.

If all else fails as you search for how you are doing this, 
try explicitly naming each figure:

fig1 = pylab.figure(figsize=(figw,figh))
ax1 = fig.gca()
ax1.plot(x,y, 'k', label="My Title")
fig1.savefig(workdir+'\\'+file_name)

Cheers,
Alan Isaac



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to