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

Document Axes.spines#29965

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
jklymak merged 1 commit intomatplotlib:mainfromrcomer:doc-axes-spines
Apr 25, 2025
Merged

Conversation

rcomer
Copy link
Member

PR summary

Closes#29964, by hanging a docstring from a class level type hint. I did not know you could do this - so thanks to@timhoffm for the pointer.

PR checklist

@rcomerrcomer added topic: axes Documentation: APIfiles in lib/ and doc/api labelsApr 25, 2025
@rcomer
Copy link
MemberAuthor

Renders like this

@rcomerrcomer added this to thev3.10.2 milestoneApr 25, 2025
Comment on lines +563 to +564
The `.Spines` container for the Axes' spines, i.e. the lines denoting the
data area boundaries.
Copy link
Member

Choose a reason for hiding this comment

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

Maybe:

Suggested change
The`.Spines`containerfortheAxes'spines,i.e.thelinesdenotingthe
dataareaboundaries.
The`.Spines`containerfortheAxes'spines,usuallythelinesthatdenotethex-andy-axis.

because the spines need not be on the data area boundaries (of course they need not be x or y axises either, but "usually" should be fine for that)?

Copy link
Member

Choose a reason for hiding this comment

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

I slightly lean towards the present description. While not general, it's what the default is, and thus it's easier to understand. Possibly a more detailed description should go into the class docs?

Copy link
MemberAuthor

@rcomerrcomerApr 25, 2025
edited
Loading

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

Fair enough because some of the spines do not have axis info on them. I still found it an odd construction.

@jklymakjklymak merged commit4af11e7 intomatplotlib:mainApr 25, 2025
45 of 47 checks passed
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestApr 25, 2025
QuLogic added a commit that referenced this pull requestApr 26, 2025
…965-on-v3.10.xBackport PR#29965 on branch v3.10.x (Document Axes.spines)
@rcomerrcomer deleted the doc-axes-spines branchApril 26, 2025 09:40
@ksundenksunden mentioned this pull requestMay 9, 2025
5 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm left review comments

@jklymakjklymakjklymak approved these changes

Assignees
No one assigned
Labels
Documentation: APIfiles in lib/ and doc/apitopic: axes
Projects
None yet
Milestone
v3.10.3
Development

Successfully merging this pull request may close these issues.

[Doc]: object description for "spines"of matplot.axes.Axes not found
3 participants
@rcomer@jklymak@timhoffm

[8]ページ先頭

©2009-2025 Movatter.jp