Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
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
Add example to polygon selector docstring showing how to set vertices programmatically#22170
Uh oh!
There was an error while loading.Please reload this page.
Conversation
There was a problem hiding this 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.
1043571
to4c2ddf4
Compare…ically and interactively
4c2ddf4
to08c438a
Compare
Done. |
PR Summary
Follow up of#21881.
PR Checklist
Tests and Styling
pytest
passes).flake8-docstrings
and runflake8 --docstring-convention=all
).Documentation
doc/users/next_whats_new/
(follow instructions in README.rst there).doc/api/next_api_changes/
(follow instructions in README.rst there).