How may I close a full-screen matplotlib
window? I spawned the figure using:
plt.ion()
fig = plt.figure('Optimizer')
plt.tight_layout()
mng = plt.get_current_fig_manager()
mng.full_screen_toggle()
However, plt.close("all")
does not seem to do anything, and I couldn't find many things online to try that are relevant to full-screen figures. Seems like the behavior of closing figures differs for full-screen plots?
I have to manually kill -9
the entire script for it to close. (Running on a Raspberry Pi if that matters)
Alt F4 does the trick for me (Ubuntu / Windows). But I have not tried it on a Pi.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.