RuntimeWarning: More than 20 figures have been opened.

plt.cla()
plt.close("all")

循环中创建太多plt对象,在每个循环中加入上面两句

posted @ 2020-01-30 19:19  you-wh  阅读(1656)  评论(0编辑  收藏  举报
Fork me on GitHub