Skip to content
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

MRG, BUG: Fix handling of axes with constrained_layout=True #8344

Merged
merged 2 commits into from Oct 6, 2020

Conversation

larsoner
Copy link
Member

@larsoner larsoner commented Oct 5, 2020

We should only internally do tight_layout(...) calls when axes were not created using constrained_layout=True. Our current code gets a matplotlib warning about disabling the constrained_layout of the axes.

Also fixes a bug where we would raise as error instead of re-emit as a warning

@hoechenberger
Copy link
Member

One Travis job timed out after successfully running all tests.

@hoechenberger hoechenberger merged commit ce4d514 into mne-tools:master Oct 6, 2020
2 of 3 checks passed
@hoechenberger
Copy link
Member

Thanks @larsoner

Can you do the backporting also?

@larsoner larsoner deleted the constrained branch October 6, 2020 11:23
larsoner added a commit that referenced this pull request Oct 6, 2020
* BUG: Fix handling of axes with constrained_layout=True

* FIX: Version
marsipu pushed a commit to marsipu/mne-python that referenced this pull request Oct 14, 2020
…s#8344)

* BUG: Fix handling of axes with constrained_layout=True

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

Successfully merging this pull request may close these issues.

None yet

2 participants