On this page
matplotlib.pyplot.close
matplotlib.pyplot.close(*args)[source]-
Close a figure window.
close()by itself closes the current figureclose(fig)closes theFigureinstance figclose(num)closes the figure number numclose(name)where name is a string, closes figure with that labelclose('all')closes all the figure windows
Examples using matplotlib.pyplot.close
© 2012–2018 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/2.2.3/api/_as_gen/matplotlib.pyplot.close.html