Skip to content

Close the monthly heatmap figure explicitly after rendering#528

Open
Whning0513 wants to merge 1 commit into
ranaroussi:mainfrom
Whning0513:fix-issue-520
Open

Close the monthly heatmap figure explicitly after rendering#528
Whning0513 wants to merge 1 commit into
ranaroussi:mainfrom
Whning0513:fix-issue-520

Conversation

@Whning0513

Copy link
Copy Markdown

Fixes #520.

monthly_heatmap() was closing whichever figure matplotlib considered current at the end of the call. In notebook-style environments such as VS Code Jupyter, that can leave the heatmap figure itself alive across repeated reports.full() calls and the second render can pick up stale plotting state.

This changes the cleanup to close the figure created by monthly_heatmap() explicitly. I also added a regression test that checks the wrapper closes that exact figure handle.

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.

Monthly Return Heatmap Display Issue in VS Code

1 participant