- import matplotlib.pyplot as plt
-
-
- def on_close(event):
- print('Closed Figure!')
-
- fig = plt.figure()
- fig.canvas.mpl_connect('close_event', on_close)
-
- plt.text(0.35, 0.5, 'Close Me!', dict(size=30))
- plt.show()
- import matplotlib.pyplot as plt
-
-
- def on_close(event):
- print('Closed Figure!')
-
- fig = plt.figure()
- fig.canvas.mpl_connect('close_event', on_close)
-
- plt.text(0.35, 0.5, 'Close Me!', dict(size=30))
- plt.show()
登录后您可以享受以下权益:
举报