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

SpanSelector widget: Improve doc forextents#27397

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
story645 merged 4 commits intomatplotlib:mainfromjudfs:doc_spanselector
Dec 5, 2023

Conversation

judfs
Copy link
Contributor

PR summary

Explains what the extents are. Addresses my problem herehttps://discourse.matplotlib.org/t/spanselector-how-to-set-selection-with-code/24114/4

Old:

https://matplotlib.org/stable/api/widgets_api.html#matplotlib.widgets.SpanSelector.extents

New rendering:

image

PR checklist

Co-authored-by: hannah <story645@gmail.com>
@story645
Copy link
Member

sorry my suggestion made the line too long so you'll have to fix that

@story645story645 added this to thev3.8.3 milestoneNov 29, 2023
@story645story645 added the Documentation: APIfiles in lib/ and doc/api labelNov 29, 2023
@@ -2695,7 +2695,7 @@ def _press(self, event):

@property
def direction(self):
"""Direction of the span selector: 'vertical' or 'horizontal'."""
"""Direction of the span selector: 'vertical' or 'horizontal'. Writable."""
Copy link
Member

Choose a reason for hiding this comment

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

What are you trying to communicate w/ writable?

Copy link
ContributorAuthor

@judfsjudfsNov 30, 2023
edited
Loading

Choose a reason for hiding this comment

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

The property has a setter. When everything else in matplotlib isset_title() or whatever, I don't take that for granted.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

No guidance here for if properties were actually used.https://matplotlib.org/devdocs/devel/document.html#setters-and-getters

Copy link
Member

Choose a reason for hiding this comment

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

I think@timhoffm has strong opinions and an open PR on documenting properties#22699

Copy link
Member

Choose a reason for hiding this comment

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

@judfs can you remove the writable? I don't think it's conveying what you intend to here and I don't want to hold up your PR longer

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Changed 👍 . As a user of mpl, I still would find it non obvious that the property is read/write / settable, but that is a more general issue. For now glad to have what the extents are described.

story645 reacted with thumbs up emoji
@story645
Copy link
Member

Thanks for the contribution! I think there's follow up here, both on how we communicate that something is a property and probably similar to#27200 about adding an extents role to the one place we define extents.

story645 added a commit that referenced this pull requestDec 5, 2023
…397-on-v3.8.xBackport PR#27397 on branch v3.8.x (SpanSelector widget: Improve doc for `extents`)
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@story645story645story645 approved these changes

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

Successfully merging this pull request may close these issues.

2 participants
@judfs@story645

[8]ページ先頭

©2009-2025 Movatter.jp