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

Add example to polygon selector docstring showing how to set vertices programmatically#22170

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

Conversation

ericpre
Copy link
Member

PR Summary

Follow up of#21881.

PR Checklist

Tests and Styling

  • [n/a] Has pytest style unit tests (andpytest passes).
  • IsFlake 8 compliant (installflake8-docstrings and runflake8 --docstring-convention=all).

Documentation

  • [n/a] New features are documented, with examples if plot related.
  • [n/a] New features have an entry indoc/users/next_whats_new/ (follow instructions in README.rst there).
  • [n/a] API changes documented indoc/api/next_api_changes/ (follow instructions in README.rst there).
  • Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).

Copy link
Member

@timhoffmtimhoffm left a comment

Choose a reason for hiding this comment

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

IMHO the main use case is still letting the user define the selection interactively. Setting vertices programmatically is only a secondary application. Therefore, it feels like the wrong priority to have this as the sole explicit example in the docstring.

I suggest to move this code to the example as well and introduce two sections for programmatically/interactive. As a bonus, the example would get a static figure contating a selection, which would be nice as the gallery thumbnail.

@ericpreericpreforce-pushed theadd_docstring_example_polygon_selector branch 2 times, most recently from1043571 to4c2ddf4CompareJanuary 11, 2022 09:04
@ericpreericpreforce-pushed theadd_docstring_example_polygon_selector branch from4c2ddf4 to08c438aCompareJanuary 11, 2022 11:36
@ericpre
Copy link
MemberAuthor

@ericpre
Copy link
MemberAuthor

I suggest to move this code to the example as well and introduce two sections for programmatically/interactive. As a bonus, the example would get a static figure contating a selection, which would be nice as the gallery thumbnail.

Done.

@QuLogicQuLogic merged commitf35a330 intomatplotlib:mainMar 15, 2022
@oscargusoscargus added this to thev3.6.0 milestoneAug 1, 2022
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@timhoffmtimhoffmtimhoffm left review comments

@oscargusoscargusoscargus approved these changes

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

Successfully merging this pull request may close these issues.

5 participants
@ericpre@timhoffm@oscargus@QuLogic@dstansby

[8]ページ先頭

©2009-2025 Movatter.jp