8000 Axes.stem docstring document orientation as literals (#24807) · matplotlib/matplotlib@ab364af · GitHub
[go: up one dir, main page]

Skip to content

Commit ab364af

Browse files
ksundentimhoffmQuLogic
authored
Axes.stem docstring document orientation as literals (#24807)
* 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" 8000 . 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 <2836374+timhoffm@users.noreply.github.com> Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent f28b843 commit ab364af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2946,9 +2946,9 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
29462946
basefmt : str, default: 'C3-' ('C2-' in classic mode)
29472947
A format string defining the properties of the baseline.
29482948
2949-
orientation : str, default: 'vertical'
2949+
orientation : {'vertical', 'horizontal'}, default: 'vertical'
29502950
If 'vertical', will produce a plot with stems oriented vertically,
2951-
otherwise the stems will be oriented horizontally.
2951+
If 'horizontal', the stems will be oriented horizontally.
29522952
29532953
bottom : float, default: 0
29542954
The y/x-position of the baseline (depending on orientation).

0 commit comments

Comments
 (0)
0