Skip to content

FIX: do not set constrained layout on false-y values #23987

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
Sep 23, 2022

Conversation

tacaswell
Copy link
Member

PR Summary

closes #23986

While fixing this I discovered that plt.figure(..., constrained_layout={}) can take a dictionary but that is not documented. Given that it is discouraged, I did not document this feature, but added a test and decided that an empty dictionary should be "True" for this purpose.

PR Checklist

Tests and Styling

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (install flake8-docstrings and run flake8 --docstring-convention=all).

@tacaswell tacaswell added this to the v3.6.1 milestone Sep 22, 2022
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@QuLogic QuLogic requested a review from jklymak September 23, 2022 01:01
@jklymak jklymak merged commit 33303ba into matplotlib:main Sep 23, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Sep 23, 2022
timhoffm added a commit that referenced this pull request Sep 23, 2022
…987-on-v3.6.x

Backport PR #23987 on branch v3.6.x (FIX: do not set constrained layout on false-y values)
@tacaswell tacaswell deleted the fix_false_CL branch September 23, 2022 06:46
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
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.

[Bug]: Constrained layout UserWarning even when False
3 participants