Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix tk error when closing first pyplot figure #12707

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

Conversation

ImportanceOfBeingErnest
Copy link
Member

PR Summary

Fixes #12703, where closing the first pyplot figure before show results in a tk error.

This PR implements the solution proposed by @anntzer.

I wouldn't currently know how to test the interactive backend, but I'm happy to find out if someone thinks this needs to be tested.

I milestoned for v3.0.x, despite being no regression, because it fixes an ugly bug.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

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

Successfully merging this pull request may close these issues.

Error when closing first of several pyplot figures in TkAgg
3 participants