Python/matplotlib之【RuntimeWarning: More than 20 figures have been opened】

当绘图的过程中,建立了大量的figure,就会报错
解决的方法(两种):

  1. 及时关掉已存在的图像:plt.close("all")
  2. 擦除figure上的图像以便复用:plt.cla()
Logo

鸿蒙生态一站式服务平台。

更多推荐