Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Close figures after saving, and refactor plotting code #482

Merged
merged 2 commits into from
Apr 17, 2024

Conversation

jfrost-mo
Copy link
Member

Refactors the plotting code to use the explicit (object-oriented) matplotlib API. Figures are explicitly closed, preventing memory leaking. Also added a super-title to the postage stamp plots, so the diagnostic title is there too.

Fixes #481

Refactors the plotting code to use the explicit (object-oriented)
matplotlib API. Figures are explicitly closed, preventing memory
leaking. Also added a super-title to the postage stamp plots, so
the diagnostic title is there too.

Fixes #481
@jfrost-mo jfrost-mo added the bug Something isn't working label Apr 11, 2024
@jfrost-mo jfrost-mo marked this pull request as ready for review April 11, 2024 16:09
Copy link
Contributor

Coverage

@Sylviabohnenstengel Sylviabohnenstengel merged commit afac381 into main Apr 17, 2024
8 checks passed
@Sylviabohnenstengel Sylviabohnenstengel deleted the 481_close_plots branch April 17, 2024 13:25
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Too many plots cause plotting process to run out of memory
2 participants