Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
tacaswell merged 1 commit intomatplotlib:mainfromtimhoffm:doc-apply-aspect
Jun 26, 2024

Conversation

timhoffm
Copy link
Member

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 in66290aa. 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)

Superseedsmatplotlib#23629.It is somewhat surprising that "_apply_aspect" takes anoptional position as input, which seems more functionalitythan what the name suggests.The parameter was introduced in66290aa. Generally, applyingan aspect will modify the size and position of an Axes. Thefact that position is updated anyway was used to funneladditional position information from a layout into the alreadyexisting positioning code.Deprecating and removing the parameter would be a medium compatibilityhassle. Therefore, I chose only to document the status quo and itsintention, so that users are less surprised. Seematplotlib#23629 (comment)
@timhoffmtimhoffm added this to thev3.9.1 milestoneJun 4, 2024
@tacaswelltacaswell merged commit7c86942 intomatplotlib:mainJun 26, 2024
41 of 42 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestJun 26, 2024
@timhoffmtimhoffm deleted the doc-apply-aspect branchJune 26, 2024 20:25
QuLogic added a commit that referenced this pull requestJun 26, 2024
…342-on-v3.9.xBackport PR#28342 on branch v3.9.x (DOC: Document the parameter *position* of apply_aspect() as internal)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@tacaswelltacaswelltacaswell approved these changes

Assignees
No one assigned
Projects
None yet
Milestone
v3.9.1
Development

Successfully merging this pull request may close these issues.

2 participants
@timhoffm@tacaswell

[8]ページ先頭

©2009-2025 Movatter.jp