Pythonmatplotlib之【RuntimeWarning: More than 20 figures have been opened】

    技术2022-07-12  77

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

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

    及时关掉已存在的图像:plt.close("all")擦除figure上的图像以便复用:plt.cla()
    Processed: 0.018, SQL: 9