[Matplotlib-users] How to close plot window in interactive mode?
Jerzy Karczmarczuk
jerzy.karczmarczuk at unicaen.fr
Tue Jun 30 15:58:35 EDT 2020
Le 30/06/2020 à 20:30, Gilles Allard a écrit :
> I'm searching for a way to close (programmatically) a plot window in
> interactive mode.
> What is the best way?
Oh, you are searching, you say... Why not (with plt meaning
matplotlib.pyplot):
plt.close(myFigure)
To see if it is the best or not... read the manual perhaps?... For example
https://matplotlib.org/api/_as_gen/matplotlib.pyplot.close.html
Google gives you 1 050 000 results if you type "matplotlib close window"!
Jerzy Karczmarczuk
/Caen, France/
More information about the Matplotlib-users
mailing list