Skip to content

MacOSX backend not closing properly #4142

Closed

Description

@cimarronm

MacOSX backend does not seem to be closing properly when plot windows are closed.

import matplotlib.pyplot as plt

plt.plot(range(10))
plt.show()
print("Won't reach here")
plt.plot(range(20))
plt.show()

The python script will halt after the first plt.show() even after closing the plot windows. Problem seems to be that the backend NSApp is not quitting and is not returning back from show().

Activity

  1. cimarronm commented on Feb 21, 2015

    @cimarronm
    ContributorAuthor

    This appears to have started with PR #4006.

    @mdehoon, do you want to see if you can reproduce on your system and it is not just an issue with my setup? I see the problem running on python 3.4.2.

  2. cimarronm commented on Feb 21, 2015

    @cimarronm
    ContributorAuthor

    Also, I don't see any issues if run under ipython or if ion() is set

  3. added this to the milestone on Feb 21, 2015
  4. mdehoon commented on Feb 22, 2015

    @mdehoon
    Contributor

    Indeed this was caused by some code getting inadvertently lost in pull request 4006.
    See pull request 4144 (#4144) for a fix.

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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions