问题
how can I catch a close event from the windows close button in pyplot? the app is totally simple, but I want to stop plotting when the windows closer is clicked.
plt.axis([0, 100, 0, 255, -5, 5])
plt.ion()
plt.show()
mainloop:
plt.plot (whatever)
来源:https://stackoverflow.com/questions/58012313/pyplot-catch-windows-10-close-windows-event