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

Rename recently introduced parameters in SpanSelector#20558

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:masterfromtimhoffm:span-selector
Jul 1, 2021

Conversation

timhoffm
Copy link
Member

@timhoffmtimhoffm commentedJun 30, 2021
edited
Loading

PR Summary

Follow up to#20113.

  • IMHO two parameters were not named clearly, so renaming
    • line_props ->handle_props
    • maxdist ->handle_grab_distance
  • Minor improvements:
    • document default forbuttons
    • document default fordrag_from_anywhere
    • properly documentonselect

Heads up: I also see a naming issue withinteractive (see#20113 (comment)), but it's unclear if we should go back to the oldspan_stay or a different new name. To be discussed in tomorrows dev call. This can be addressed separately from this PR.

@timhoffmtimhoffm added this to thev3.5.0 milestoneJun 30, 2021
@ericpre
Copy link
Member

Indeed, the new names aremuch better, would it make sense to also rename these forRectangleSelector/EllipseSelector?

I agree with#20113 (comment) that the name doesn't describe completely what it does. However,persistent is not good enough, as wasspan_stays, because it doesn't describe the fact that the selector can be changed "interactively" using the handle.
The motivation in renaming it tointeractive in#20113 was to improve the consistency withRectangleSelector/EllipseSelector.

Maybe a better way to do this is to addpersistent alongsideinteractive_handle (or something similar)? This will allow the case where the selector patch stays on the axis (is persistent) but is not interactive?interactive_handle=True will need to setpersistent=True. Even if this makes the API of the selector slightly more complicated by adding more argument, the meaning of the arguments are more clear!

@tacaswell
Copy link
Member

Indeed, the new names are much better, would it make sense to also rename these for RectangleSelector/EllipseSelector?

Yes

@tacaswelltacaswell merged commit11a628f intomatplotlib:masterJul 1, 2021
@timhoffmtimhoffm deleted the span-selector branchJuly 1, 2021 18:46
@ericpreericpre mentioned this pull requestJul 6, 2021
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@timhoffm@ericpre@tacaswell@QuLogic

[8]ページ先頭

©2009-2025 Movatter.jp