Skip to content

Figures not showing in interactive mode with macosx backend #6838

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

Closed
bartvstratum opened this issue Jul 26, 2016 · 5 comments
Closed

Figures not showing in interactive mode with macosx backend #6838

bartvstratum opened this issue Jul 26, 2016 · 5 comments

Comments

@bartvstratum
Copy link

bartvstratum commented Jul 26, 2016

Matplotlib 1.5.1, Python 3.5.2, ipython 5.0.0, OS X El Capitan; Python3 installed with Homebrew, matplotlib through Pip. Empty matplotlibrc file, except for backend : macosx

When creating a figure in non-interactive mode in ipython, matplotlib behaves as expected:

import matplotlib.pylab as pl
pl.ioff()
pl.figure()
pl.show()

Gives me a nice on-screen figure. When I do the same in interactive mode (change ioff() to ion()) I get no on-screen figure, nothing. Exact the same happens when I use pl.ioff() combined with pl.show(block=False), i.e. I again get no on-screen figure.

Could this be a bug in matplotlib?

@bartvstratum
Copy link
Author

Seems to be related to ipython 5.0.0; I downgraded it to 4.2 and now everything works again as expected

@afvincent
Copy link
Contributor

Do you use the magic %matplotlib in IPython (or launch it with ipython --matplotlib or similar)?

@bartvstratum
Copy link
Author

No, I simply launch ipython and run the exact code shown above

@bartvstratum
Copy link
Author

bartvstratum commented Jul 26, 2016

Ah, with %matplotlib it also works with ipython 5.0.0. I was pointed to this: ipython/ipython#9811 and #6734 from StackOverflow, so it seems to be a known problem.

@tacaswell
Copy link
Member

Closing as not a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants