I think f = figure();
...
pylab.close(f);
should work.
--Mike
On Mar 20, 2008, at 2:14 PM, Fans Gnu wrote:
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 time
from pylab import *
from matplotlib import *
x=**
y=**
x2=**
y2=***
figure()
hold(True)
plot(x,y)
plot(x2,y2,'g^')
axis([0, 100, 0, 100])
title('Pylab plot')
xlabel('X')
ylabel('Y')
grid()
pylab.show()
time.sleep(5)
pylab.close()
Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
----------------------------------------------------------------------
---
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
------------------------------------------------------
Michael Hearne
[EMAIL PROTECTED]
(303) 273-8620
USGS National Earthquake Information Center
1711 Illinois St. Golden CO 80401
Senior Software Engineer
Synergetics, Inc.
------------------------------------------------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users