Re: [Matplotlib-users] How to close the figure after show it?

2008-03-20 Thread Fans Gnu
Can you give me a simple example to show how to set the figure's interactive property to on? I appreciate!--Brook--- On Fri, 3/21/08, Christopher Brown <[EMAIL PROTECTED]> wrote:From: Christopher Brown <[EMAIL PROTECTED]>Subject: Re: [Matplotlib-users] How to close the figure after show it?To: [EMA

Re: [Matplotlib-users] How to close the figure after show it?

2008-03-20 Thread Fans Gnu
Hi Mike,thanks for your reply. I tried f=figure() and pylab.close(f), but the figure can not be closed automatically. Seems that time.sleep(3) doesn't be called until I close the figure manually. The test code is attached below.Thanks,Brook ==from pylab import *from

[Matplotlib-users] How to close the figure after show it?

2008-03-20 Thread Fans Gnu
Hi All,I am using matplotlab to plot some figure. I would like to close the figure after show it 5 sec. My code is pasted below. However, I can not close the figure automatically.  Can anyone help me to fix it?Thanks,Brook==import timefrom pylab import *from matplotlib impor