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

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Jun 30, 2021

PR Summary

I was trying to pass wpad and wondering why it didn't seem to do anything... No deprecation because constrained layout is still 'experimental'.

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Is Flake 8 compliant (run flake8 on changed files to check).
  • [n/a] New features are documented, with examples if plot related.
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build without error).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • [n/a] New features have an entry in doc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented in doc/api/next_api_changes/ (follow instructions in README.rst there).

@QuLogic QuLogic added this to the v3.5.0 milestone Jun 30, 2021
Copy link
Member

@timhoffm timhoffm left a comment

Choose a reason for hiding this comment

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

Is there a reason that we cannot make the parameters explicit:

def set_constrained_layout_pads(*, w_pad=None, h_pad=None, wspace=None, hspace=None)

lib/matplotlib/figure.py Outdated Show resolved Hide resolved
@QuLogic
Copy link
Member Author

QuLogic commented Jun 30, 2021

Is there a reason that we cannot make the parameters explicit:

I guess maybe it was to shorten the implementation? But it's still possible in a somewhat succinct manner, so I've changed it.

@QuLogic QuLogic force-pushed the raise-constrained-pads branch from 7cab385 to cbd09f4 Compare June 30, 2021 21:56
Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

Seems good. Though I hope to get rid of all this in the near future ;-)

@jklymak jklymak merged commit cccb566 into matplotlib:master Jul 2, 2021
@QuLogic QuLogic deleted the raise-constrained-pads branch July 5, 2021 21:33
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.

3 participants

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