Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Mnt qt imports #6174

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

Merged
merged 2 commits into from
Mar 19, 2016
Merged

Mnt qt imports #6174

merged 2 commits into from
Mar 19, 2016

Conversation

tacaswell
Copy link
Member

After this is merged and the merge cascade gets this onto master a follow on PR to add a check for pyside2 is needed.

If PySide, PyQt4, or PyQt5 are imported do not consult rcparams or
ENV variable to decide which backend to use.

This is a case where ignoring user input is sensible because the Qt
bindings are mutually exclusive and attempting to import a second
binding will fail.  This can result in stand-alone scripts / mpl
embeddings which are dependent on the rcparams to function correctly.

Importing a specific Qt binding is stronger signal of user intent that
either of the other two configuration options and should take
precedence.

closes matplotlib#6164
A check was added change the fall-back behavior if the backend was not
set to PyQt{4,5}, but mpl was being embedded in a larger Qt application.

The previous commit handles the cases where Qt bindings are already
imported earlier in the module so the check here can be removed.
@tacaswell tacaswell added this to the 1.5.2 (Critical bug fix release) milestone Mar 17, 2016
@tacaswell tacaswell closed this Mar 17, 2016
@tacaswell tacaswell reopened this Mar 17, 2016
@tacaswell
Copy link
Member Author

@jrevans Can you check that this does not break your use case? I think this is a better solution than what we are currently shipping with 1.5.x

jenshnielsen added a commit that referenced this pull request Mar 19, 2016
@jenshnielsen jenshnielsen merged commit 0853446 into matplotlib:v1.5.x Mar 19, 2016
@tacaswell tacaswell deleted the mnt_qt_imports branch March 19, 2016 15:15
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

Successfully merging this pull request may close these issues.

3 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.