Python animation figure window cannot be closed automatically
问题 When creating an animation using matplotlib.animation and saving it, an error appears when trying to close the figure window via plt.close: Python version: Python 2.7.12 |Anaconda custom (64-bit)| (default, Jul 2 2016, 17:42:40) IPython 4.1.2 -- An enhanced Interactive Python Currently I switched to using PyCharm 2017.1 Community Edition. The error message can be reproduced both directly in IPython and within PyCharm when running from %cpaste or %paste in IPython or running in PyCharm's