FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

FIX: do not set constrained layout on false-y values by tacaswell · Pull Request #23987 · matplotlib/matplotlib · GitHub

Repository navigation

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

Merged
jklymak merged 2 commits into
matplotlib:mainfrom
tacaswell:fix_false_CL
Sep 23, 2022
Merged

jklymak merged 2 commits into
matplotlib:mainfrom
tacaswell:fix_false_CL

Conversation

Copy link
Copy Markdown
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 added this to the v3.6.1 milestone Sep 22, 2022
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
QuLogic requested a review from jklymak September 23, 2022 01:01
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 deleted the fix_false_CL branch September 23, 2022 06:46
ksunden mentioned this pull request Feb 20, 2023
6 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL