more than 20 open figures
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
- Domain
- data-visualization
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
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CLIMADA-project/climada_python
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CLIMADA-project/climada_python#1337 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
CLIMADA-project/climada_python#1336 ·
-
CartoDB basemaps now need an API key (somewhat urgent)Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CLIMADA-project/climada_python#1332 · 4 comments · 1 reaction ·
-
ResourceWarningOpenwarnings
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CLIMADA-project/climada_python#1239 ·
-
warnings
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CLIMADA-project/climada_python#1226 ·
All issues in CLIMADA-project/climada_python
Similar issues
-
plot_components fails for logistic models with minmax scaling and no floorPossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 4 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
benvinegar/counterscale#271 ·
-
bug feature/data-management team/product-analytics
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
PostHog/posthog#123905 · 2 comments ·
Maintainers usually reply within 1 day
-
curriculum documentation quality
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
githubnext/gh-aw-workshop#5035 ·
Maintainers usually reply within 1 day
-
bug P3 size: 1
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day