-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Figures in windows not tabs #13164
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
It seems this an OS "feature". Is this of any help? |
Kind of. Changing that setting does help, however it affects all applications. I generally prefer things opening in new tabs, but in this case I don't. Applications can override this system-wide setting. Seems like none of the backends override it (or give the option to override it) |
@hutattedonmyarm I think we are 👍 adding that feature to atleast the OSX backend (as it is clearly mac-specific) if you are interested in implementing it. For the other backends, it would need to be done in a way that does not affect non-OSX users. |
I played with the source a bit. I managed to change the behavior, but it should be optional. I'm assuming this would be set using rcParams, or maybe as a backend function? I'm very new to using Matplotlib, so not sure what the best way is |
We do have precedence for GUI specific rcparams ( It may also be that this is best done as a documentation PR showing how to change the application settings. |
Alright, will use rcparams then. I'll have to find how to read the params, and then update the docs |
I want to create multiple figure with Matplotlib in python, using the macosx backend. Currently, my code looks something like this:
This creates a single window, with two tabs. One for figure 1, and one for figure 2. I suggest an option to open them in separate windows.
Note that the tabs likely come from the automatic tab-support built into the OS since macOS 10.12
Matplotlib version
print(matplotlib.get_backend())
): MacOSXThe text was updated successfully, but these errors were encountered: