-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Interactive mode seems to be broken on MacOSX #7351
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
Comments
TL; DR - this is the correct and expected behavior That is not quite how the integration with the GUI works. There is a stalled PR adding documentation for this #4779 The very short version is that in order for the GUI to be responsive there must be an event loop running to respond to the user input. The reason that By using |
Can I spawn a thread and run the event loop independently? |
GUI event loops tend to require they be on the main thread. This discussion will be better on matplotlib-users@python.org (you will have to join the list to post un-moderated) than in this issue. |
Based on the examples I expect that calling plt.ion() will turn on interactive mode so that plt.show() doesn't block. However when I call this the plot never shows up (the python app launches, but there is no window). Commenting out the ion() shows the plot and it blocks on show(). Am I doing something wrong, or is this just broken?
Versions:
The text was updated successfully, but these errors were encountered: