RuntimeWarning: More than 20 figures have been opened.

RuntimeWarning: More than 20 figures have been opened. Figures created through the pyplot interface (matplotlib.pyplot.figure) are retained until explicitly closed and may consume too much memory.
已邀请:

李魔佛 - 公众号:可转债量化分析 【论坛注册:公众号后台留言邮箱】

赞同来自:

因为循环太多,每个循环里面画了一张图,所以可以在每个循环内把plt关闭。
plt.close()

要回复问题请先登录注册