From: Alan G I. <ai...@am...> - 2006-12-22 19:13:05
|
>> On Fri, 22 Dec 2006, ch...@se... apparently wrote:=20 >>> 1st message in this thread has code to create each plot.=20 >>> Each one does a 'figure_ =3D pylab.figure()' already.=20 > Alan G Isaac wrote:=20 >> Sorry I missed the thread, but each call to pylab.figure()=20 >> will give you a new active figure. Everything you plot will=20 >> then be plotted to that figure. Previous plots will not be=20 >> erased until you explicitly remove them. You can also get=20 >> the axes for a particular figure and plot directly to the=20 >> axis.=20 >> Probably you are not creating new figures when you think you=20 >> are...=20 On Fri, 22 Dec 2006, Eric Firing apparently wrote:=20 > I'm puzzled. The call to pylab.close() after the savefig should=20 > completely wipe out the current figure, shouldn't it?=20 Just because the figure window is closed does not mean the figure is deleted. Chris apparently maintains a reference to the figure? > And even without the close (which certainly should be used anyway), each= =20 > function starts with a call to pylab.figure() which should start a new=20 > figure.=20 Right! This my comment above. Cheers, Alan Isaac |