FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Closing a plot window throws an error when in pause · Issue #16667 · matplotlib/matplotlib · GitHub

Repository navigation

Closing a plot window throws an error when in pause #16667

Closed

Description

If I'm using plot.pause(15) and I close the window while there is a pause, the window shouldn't throw an exception, instead keep the execution going

Bug report

Bug summary

Code for reproduction

# Paste your code here
#   plt.show(block=False)
    plt.pause(15)
    self.hide()
    def hide(self):
        if plt.gcf():
            plt.clf()
            plt.cla()
            plt.close()
#

Actual outcome

# If applicable, paste the console output here
#_tkinter.TclError: can't invoke "update" command: application has been destroyed
#

Expected outcome

Matplotlib version

  • Operating system:
  • Matplotlib version:
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:

Activity

  1. changed the title [-]Closing a plot window throws an error[/-] [+]Closing a plot window throws an error when in pause[/+] on Mar 5, 2020
  2. tacaswell commented on Mar 5, 2020

    Member

    Can you please fill out the information about Matplotlib, python, system, and tk version?

    This is clearly a snippet from a much larger code base, do you have a self-contained example that demonstrates this problem?

  3. WeatherGod commented on Mar 6, 2020

    Member

    It would also be useful to see the traceback

  4. anntzer commented on Jul 7, 2020

    Contributor

    closing for lack of activity.

  5. tacaswell commented on Jul 7, 2020

    Member

    I suspect that this will be fixed by #17802 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL