Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add fixture to close automatically Matplotlib figures in tests #168

Closed
jhlegarreta opened this issue Feb 16, 2025 · 0 comments · Fixed by #169
Closed

Add fixture to close automatically Matplotlib figures in tests #168

jhlegarreta opened this issue Feb 16, 2025 · 0 comments · Fixed by #169
Labels
enhancement New feature or request

Comments

@jhlegarreta
Copy link
Collaborator

What would you like to see added in this software?

Matplotlib figures in tests are most commonly not closed. If an excessive amount of figures is opened and not serialized, unless explicitly closed Matplotlib will raise a warning.

PR #167 proposed to explicitly close figures adding an extra plt.close("all") statement at the end of the relevant tests.

It was suggested that a fixture would be a more effective way to achieve this goal.

Do you have any interest in helping implement the feature?

Yes

Additional information / screenshots

N/A.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant