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

Skip to content

DOC: Document the parameter *position* of apply_aspect() as internal #28342

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
Jun 26, 2024

Conversation

timhoffm
Copy link
Member

@timhoffm timhoffm commented Jun 4, 2024

Superseeds #23629.

It is somewhat surprising that "_apply_aspect" takes an optional position as input, which seems more functionality than what the name suggests.

The parameter was introduced in 66290aa. Generally, applying an aspect will modify the size and position of an Axes. The fact that position is updated anyway was used to funnel additional position information from a layout into the already existing positioning code.

Deprecating and removing the parameter would be a medium compatibility hassle. Therefore, I chose only to document the status quo and its intention, so that users are less surprised. See
#23629 (comment)

Superseeds matplotlib#23629.

It is somewhat surprising that "_apply_aspect" takes an
optional position as input, which seems more functionality
than what the name suggests.

The parameter was introduced in 66290aa. Generally, applying
an aspect will modify the size and position of an Axes. The
fact that position is updated anyway was used to funnel
additional position information from a layout into the already
existing positioning code.

Deprecating and removing the parameter would be a medium compatibility
hassle. Therefore, I chose only to document the status quo and its
intention, so that users are less surprised. See
matplotlib#23629 (comment)
@timhoffm timhoffm force-pushed the doc-apply-aspect branch from dbd1f4e to 06e6d95 Compare June 4, 2024 21:12
@timhoffm timhoffm added this to the v3.9.1 milestone Jun 4, 2024
@tacaswell tacaswell merged commit 7c86942 into matplotlib:main Jun 26, 2024
41 of 42 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Jun 26, 2024
@timhoffm timhoffm deleted the doc-apply-aspect branch June 26, 2024 20:25
QuLogic added a commit that referenced this pull request Jun 26, 2024
…342-on-v3.9.x

Backport PR #28342 on branch v3.9.x (DOC: Document the parameter *position* of apply_aspect() as internal)
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.

2 participants