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

Axes.stem docstring document orientation as literals#24807

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
timhoffm merged 2 commits intomatplotlib:mainfromksunden:axes_stem_orientation
Dec 22, 2022

Conversation

ksunden
Copy link
Member

PR Summary

We use_api.check_in_list in the method body, so arbitrary strings are
not accetable and will raise if it is not precisely "vertical" or
"horizontal".

This brings the docstring in line with this behavior.
Many other places which have an orientation kwarg are similarly
documented.

PR Checklist

Documentation and Tests

  • [n/a] Has pytest style unit tests (andpytest passes)
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs shouldbuild without error).
  • [n/a] New plotting related features are documented with examples.

Release Notes

  • [n/a] New features are marked with a.. versionadded:: directive in the docstring and documented indoc/users/next_whats_new/
  • [n/a] API changes are marked with a.. versionchanged:: directive in the docstring and documented indoc/api/next_api_changes/
  • [n/a] Release notes conform with instructions innext_whats_new/README.rst ornext_api_changes/README.rst

We use `_api.check_in_list` in the method body, so arbitrary strings arenot accetable and will raise if it is not precisely "vertical" or"horizontal".This brings the docstring in line with this behavior.Many other places which have an orientation kwarg are similarlydocumented.
Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
@timhoffmtimhoffm added this to thev3.7.0 milestoneDec 22, 2022
@timhoffmtimhoffm modified the milestones:v3.7.0,v3.6-docDec 22, 2022
@timhoffmtimhoffm merged commitab364af intomatplotlib:mainDec 22, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestDec 22, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull requestDec 22, 2022
@rcomerrcomer modified the milestones:v3.6-doc,v3.6.3Dec 22, 2022
rcomer added a commit that referenced this pull requestDec 22, 2022
…807-on-v3.6.xBackport PR#24807 on branch v3.6.x (Axes.stem docstring document orientation as literals)
@ksundenksunden deleted the axes_stem_orientation branchDecember 27, 2022 18:48
@ksundenksunden mentioned this pull requestFeb 20, 2023
6 tasks
raphaelquast pushed a commit to raphaelquast/matplotlib that referenced this pull requestMar 16, 2023
* Axes.stem docstring document orientation as literalsWe use `_api.check_in_list` in the method body, so arbitrary strings arenot accetable and will raise if it is not precisely "vertical" or"horizontal".This brings the docstring in line with this behavior.Many other places which have an orientation kwarg are similarlydocumented.Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@QuLogicQuLogicQuLogic left review comments

@timhoffmtimhoffmtimhoffm approved these changes

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

Successfully merging this pull request may close these issues.

4 participants
@ksunden@QuLogic@timhoffm@rcomer

[8]ページ先頭

©2009-2025 Movatter.jp