Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: CL more stable #17306

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 1 commit into from
May 2, 2020
Merged

FIX: CL more stable #17306

merged 1 commit into from
May 2, 2020

Conversation

jklymak
Copy link
Member

@jklymak jklymak commented May 2, 2020

PR Summary

Closes #17304

An issue with CL is that zero-width axes are a solution to most of the constraints. The removed code in this PR was meant to prevent this collapse, but other changes later also do the same work (by adding a weak constraint to make the axes try to fill the figure. As #17304 shows, these lines are fragile for poorly constrained layouts.

Removing these lines still passes all the tests, passes the issue in #17304, and doesn't change any of the tutorial examples, so I think its fine.

PR Checklist

  • Has Pytest style unit tests
  • Code is Flake 8 compliant
  • New features are documented, with examples if plot related
  • Documentation is sphinx and numpydoc compliant
  • Added an entry to doc/users/next_whats_new/ if major new feature (follow instructions in README.rst there)
  • Documented in doc/api/api_changes.rst if API changed in a backward-incompatible way

@jklymak jklymak added the topic: geometry manager LayoutEngine, Constrained layout, Tight layout label May 2, 2020
Copy link
Contributor

@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works for me. needs ci, as usual.
thanks for the quick fix :)

@jklymak jklymak added this to the v3.3.0 milestone May 2, 2020
@jklymak
Copy link
Member Author

jklymak commented May 2, 2020

May as well get this in for 3.3

@timhoffm timhoffm merged commit f843ffd into matplotlib:master May 2, 2020
@jklymak jklymak deleted the fix-CL-more-stable branch May 2, 2020 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: geometry manager LayoutEngine, Constrained layout, Tight layout
Projects
None yet
Development

Successfully merging this pull request may close these issues.

constrained-layout gives wrong results when explicitly equal width ratios are set
3 participants