Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

more than 20 open figures

Open Beginner friendly
#1,241 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
65/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python

Research direction

The warning is raised from the plotting code at climada.hazard.plot line 384, so start there and find which figure is created with matplotlib.pyplot.figure and never closed. Check whether the figure can be closed after it is drawn or returned without breaking callers. Done when the plotting path no longer triggers the 'More than 20 figures' RuntimeWarning in a run that makes many hazard plots.

Written by the indexing model from the issue text.

Description

warnings

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().

Occurrence

  • climada.hazard.plot:384
Dominant language
Jupyter Notebook
Stars
478
Forks
166
Avg merge
1d 20h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CLIMADA-project/climada_python

All issues in CLIMADA-project/climada_python

Similar issues

More Data Visualization issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.