Skip to content

Fixed typo in _constrained_layout.py (#20782) #20786

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
Aug 3, 2021

Conversation

sandipanpanda
Copy link
Contributor

@sandipanpanda sandipanpanda commented Aug 3, 2021

PR Summary

Fixed #20782. In https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/_constrained_layout.py#L304

fixed typo

if fig._supylabel is not None and fig._supxlabel.get_in_layout():

to

if fig._supylabel is not None and fig._supylabel.get_in_layout():

PR Checklist

  • Has pytest style unit tests (and pytest passes).
  • Conforms to Matplotlib style conventions (install flake8-docstrings and run flake8 --docstring-convention=all).
  • 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).
  • [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).

In https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/_constrained_layout.py#L304
    if fig._supylabel is not None and fig._supxlabel.get_in_layout():    should be
    if fig._supylabel is not None and fig._supylabel.get_in_layout():
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Thank you for opening your first PR into Matplotlib!

If you have not heard from us in a while, please feel free to ping @matplotlib/developers or anyone who has commented on the PR. Most of our reviewers are volunteers and sometimes things fall through the cracks.

You can also join us on gitter for real-time discussion.

For details on testing, writing docs, and our review process, please see the developer guide

We strive to be a welcoming and open project. Please follow our Code of Conduct.

@jklymak jklymak added the topic: geometry manager LayoutEngine, Constrained layout, Tight layout label Aug 3, 2021
@jklymak jklymak modified the milestones: v3.5.0, v3.4.3 Aug 3, 2021
@jklymak jklymak merged commit 2c3bc26 into matplotlib:master Aug 3, 2021
@jklymak
Copy link
Member

jklymak commented Aug 3, 2021

Thanks @sandipanpanda !

meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Aug 3, 2021
jklymak added a commit that referenced this pull request Aug 3, 2021
…786-on-v3.4.x

Backport PR #20786 on branch v3.4.x (Fixed typo in _constrained_layout.py (#20782))
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.

[Bug]: _supylabel get_in_layout() typo?
3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy