Skip to content

Fix RuntimeWarning: More than 20 figures ... - #94

Merged
daavid00 merged 1 commit into
cssr-tools:mainfrom
daavid00:dev
Jul 23, 2026
Merged

Fix RuntimeWarning: More than 20 figures ...#94
daavid00 merged 1 commit into
cssr-tools:mainfrom
daavid00:dev

Conversation

@daavid00

Copy link
Copy Markdown
Member

Description

Fix to the RuntimeWarning reported by @nasserma (thanks):

/pycopm/examples/configurations/norne/norne_coarser/jobs/plotting.py:218: 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()`.
  figs[j], axs[j] = plt.subplots()

PR part of the JOSS review openjournals/joss-reviews#10124

@daavid00
daavid00 merged commit dd4c0db into cssr-tools:main Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant