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
interactive mode doesn't display images with standard python interpreter #5561
Comments
Please try using the IPython shell and the |
This needs to be verified, but my theory of what is going on here: For interactive figures to work (that is you have both the prompt and can pan/zoom) the figure the gui event loop needs to be integrated into the event loop running the python prompt. This is done through the The reason that this used to 'work' (that is you would get a figure, but it would not be live) and now does not is that in 1.5.0 as part of getting the auto-redraw to work we converted a number of synchronous To get this to work I think you can a) just use IPython for interactive use Calling |
@tacaswell
|
regarding the hook to install, I am not a gtk expert (as I am not sure I even have it installed on my computer), but have a look at |
@tacaswell I see. Thank you very much. By the way, I did get a warning thrown by matplotlib after calling >>> plt.pause(30)
/usr/local/lib/python2.7/dist-packages/matplotlib/backend_bases.py:2435: MatplotlibDeprecationWarning: Using default event loop until function specific to this GUI is implemented
warnings.warn(str, mplDeprecation) |
That warning is known and old, don't worry about it. |
All the codes won't display images, and there is a warning when I try to exit from python shell, which I don't know if is relevant.
However if interactive mode is not used, everything is fine. After I close the image window and exit python shell later on, there is no warning.
Below is my environment information:
The text was updated successfully, but these errors were encountered: