Skip to content

Fix tk error when closing first pyplot figure - #12707

Merged
tacaswell merged 1 commit into
matplotlib:masterfrom
ImportanceOfBeingErnest:fix-tk-closedfigure-mainloop
Nov 4, 2018
Merged

tacaswell merged 1 commit into
matplotlib:masterfrom
ImportanceOfBeingErnest:fix-tk-closedfigure-mainloop

Conversation

@ImportanceOfBeingErnest

Copy link
Copy Markdown
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