-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Raises the Figures windows when issuing a blocking show() on the macosx backend. #663
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
Conversation
This is done by issuing an activateIgnoringOtherApps:YES on NSApp, in the show() method of the macosx backend.
This has been a known issue, and I think the only reason why it hasn't been done is that none of us knew how to do it properly. |
I will let other confirm this is not too unproper. :)
and issuing just before show():
It worked, but the pull request should achieve the same thing within the macosx backend show() method. |
@jiffyclub: If I read #665 correctly, you are in interactive mode. My pull request only raises the plot window if in non-interactive mode. Are you expecting from the show() command that it also yields the focus to the plot window in interactive mode? |
@gellule, I am not in interactive mode. I'm using |
@jiffyclub Thanks for the answer. #665 does not seem related to the current pull request. But because of #665 (comment), and because you are the only person (that I know of) who tried my branch, could you please check that you are using the version of matplotlib you pulled from my branch? Maybe with a:
Thanks. |
@gellule the command I used to install was Out of curiosity, are you using Lion? I suspect the problems I'm having with #665 are Lion related and not seeing the expected behavior here is probably also a Lion effect. But if you're using Lion it's back to the drawing board on that idea. |
@jiffyclub I just wanted to make sure that either you had one copy of matplotlib installed, or were using the correct one. I am also on Lion. However, I'm getting python and others (including matplotlib) from macports. Except for my matplotlib checkout that I use locally. |
Looks like this pull request could be... pulled? :) |
I guess we could pull it and see what others think. I guess a partial solution is better than none at all? Any objections Mike? |
Thank you! |
Currently when issuing a blocking show() on the macosx backend, the figures appear in the background, and the shell (or application) that holds the python interpreter stays active. The user has to make the figures active by clicking on them, interact with them, and then close them to keep going. Why not directly make the figure active, since the only way to keep going is to close the windows?