warning about too many open figures

后端 未结 6 1893
陌清茗
陌清茗 2020-11-29 15:38

In a script where I create many figures with fix, ax = plt.subplots(...), I get the warning RuntimeWarning: More than 20 figures have been opened. Figures c

6条回答
  •  抹茶落季
    2020-11-29 16:26

    import matplotlib.pyplot as plt  
    plt.rcParams.update({'figure.max_open_warning': 0})
    

    If you use this, you won’t get that error, and it is the simplest way to do that.

提交回复
热议问题