Destroy figures by manager instance, not by number.#16819
Destroy figures by manager instance, not by number.#16819timhoffm merged 1 commit intomatplotlib:masterfrom
Conversation
This avoids destroying the wrong figure when two managers share the same number. (I don't think this can be easily tested as what really matters is UI closing?)
timhoffm
left a comment
There was a problem hiding this comment.
Can we easily find out if there are multiple figures with the same number. If so, we should issue a warning on that.
Not really in the general case (unless you add machinery to store all figure instances somewhere). We could do that in destroy() (if |
|
The wx on osx failure might be real (a hanging subprocess). Restarted, lets see if it passes the second time.. |
This avoids destroying the wrong figure when two managers share the same
number.
(I don't think this can be easily tested as what really matters is UI
closing?)
Closes #15203.
PR Summary
PR Checklist