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 import * from pylab import figure, close, show, nx from matplotlib.figure import Figure import time x=arange(10) y=[2, 4, 6, 8, 10, 12, 14, 16, 18, 20] x2=arange(20) y2=arange(20) f=figure() hold(True) plot(x,y) plot(x2,y2) grid() pylab.show() time.sleep(3) pylab.close(f) |
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