problems doing MULTIPLE plots -> old plots appear on new plots!?!

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

···

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, chris@...1388... 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.