8000 Add validation for the orientation in stem(). · matplotlib/matplotlib@77d8cfb · GitHub
[go: up one dir, main page]

Skip to content

Commit 77d8cfb

Browse files
committed
Add validation for the orientation in stem().
1 parent fc6daff commit 77d8cfb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2807,6 +2807,8 @@ def stem(self, *args, linefmt=None, markerfmt=None, basefmt=None, bottom=0,
28072807
if not 1 <= len(args) <= 5:
28082808
raise TypeError('stem expected between 1 and 5 positional '
28092809
'arguments, got {}'.format(args))
2810+
cbook._check_in_list(['horizontal', 'vertical'],
2811+
orientation=orientation)
28102812

28112813
if len(args) == 1:
28122814
y, = args

0 commit comments

Comments
 (0)
0