On Thu, Dec 15, 2011 at 12:33 PM, Chao YUE <chaoyue...@gmail.com> wrote:
> 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.
>
Try adding 'plt.close(fig)' after you save the figure, or just plt.close()
if you want to close everything.
------------------------------------------------------------------------------
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