Dear matplotlib users,

How can I surpress the figure pop out when I make plot within the ipython
interactive shell?
suppose I make a figure first and I want to save it:

fig=plt.figure()
ax=fig.add_subplot(111)
ax.plot(np.arange(10))
fig.savefig('fig1.png')
###actually above is only an example and usually I use loop to make many
figures.

then I want to check another plot:

plt.plot(np.arange(10))
plt.show()

The problem is, when I use plt.show() to check the recently made plot, all
the figures I saved for the last session will pop out and I have to click
on the close icon to close them one by one,
which can be really annoying....

any idea would be greatly appreciated!

cheers,

Chao
-- 
***********************************************************************************
Chao YUE
Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
UMR 1572 CEA-CNRS-UVSQ
Batiment 712 - Pe 119
91191 GIF Sur YVETTE Cedex
Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
************************************************************************************
------------------------------------------------------------------------------
10 Tips for Better Server Consolidation
Server virtualization is being driven by many needs.  
But none more important than the need to reduce IT complexity 
while improving strategic productivity.  Learn More! 
http://www.accelacomm.com/jaw/sdnl/114/51507609/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to