Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 22, 2022

Conversation

ksunden
Copy link
Member

@ksunden ksunden commented Dec 22, 2022

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 (and pytest passes)
  • [n/a] Documentation is sphinx and numpydoc compliant (the docs should build 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 in doc/users/next_whats_new/
  • [n/a] API changes are marked with a .. versionchanged:: directive in the docstring and documented in doc/api/next_api_changes/
  • [n/a] Release notes conform with instructions in next_whats_new/README.rst or next_api_changes/README.rst

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.
Co-authored-by: Elliott Sales de Andrade <[email protected]>
@timhoffm timhoffm added this to the v3.7.0 milestone Dec 22, 2022
@timhoffm timhoffm modified the milestones: v3.7.0, v3.6-doc Dec 22, 2022
@timhoffm timhoffm merged commit ab364af into matplotlib:main Dec 22, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 22, 2022
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 22, 2022
@rcomer rcomer modified the milestones: v3.6-doc, v3.6.3 Dec 22, 2022
rcomer added a commit that referenced this pull request Dec 22, 2022
…807-on-v3.6.x

Backport PR #24807 on branch v3.6.x (Axes.stem docstring document orientation as literals)
@ksunden ksunden deleted the axes_stem_orientation branch December 27, 2022 18:48
@ksunden ksunden mentioned this pull request Feb 20, 2023
6 tasks
raphaelquast pushed a commit to raphaelquast/matplotlib that referenced this pull request Mar 16, 2023
* Axes.stem docstring document orientation as literals

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.


Co-authored-by: Tim Hoffmann <[email protected]>
Co-authored-by: Elliott Sales de Andrade <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants