Skip to content

MatPlotLib warnings many figures open #5

@pirmink

Description

@pirmink
  • movero-plot version: 1.1.0
  • Python version: 3.11.7
  • Operating System:

Description

MatPlotLib issues warnings about more than 20 figures having been opened during execution of time_scores.py in moveroplot.

What I Did

$ moveroplot --plot_type=station,time,daytime,total --input_dir=/scratch/mch/kaufmann/movero/wd/Monitoring --output_dir=/scratch/mch/kaufmann/movero/wd/Monitoring/K-CH1-FG-det_alps --lt_ranges=01 --plot_params=TOT_PREC1,GLOB,DURSUN1,T_2M,TD_2M,RELHUM_2M,FF_10M,VMAX_10M1,DD_10M,PS,PMSL --plot_cat_params=TOT_PREC1,T_2M,TD_2M,FF_10M,VMAX_10M1 --plot_cat_thresh=0.2,0.5,2:0,15,25:0,15:2.5,5,10:5,12.5,20 --plot_scores=ME,MMOD/MOBS,MAE,STDE,RMSE,COR,NOBS --plot_cat_scores=FBI,MF/OF,POD,FAR,THS,ETS K-CH1-FG-det_alps
--- parsing user inputs
[...]
---initialising time score pipeline
/scratch/mch/kaufmann/src/movero-plot/src/moveroplot/time_scores.py:121: 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. (To control this warning, see the rcParam `figure.max_open_warning`). Consider using `matplotlib.pyplot.close()`.
  fig, ((ax0), (ax1)) = plt.subplots(

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions