8000 Adjusted docstring to follow numpydoc · matplotlib/matplotlib@220ca16 · GitHub
[go: up one dir, main page]

Skip to content

Commit 220ca16

Browse files
Adjusted docstring to follow numpydoc
1 parent e8d20b0 commit 220ca16

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/matplotlib/widgets.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -310,9 +310,8 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt='%1.2f',
310310
valstep : float, optional, default: None
311311
If given, the slider will snap to multiples of `valstep`.
312312
313-
orientation : str, optional, default: 'horizontal'
314-
'horizontal' : horizontal slider
315-
'vertical' : vertical slider
313+
orientation : {'horizontal', 'vertical'}
314+
The orientation of the slider.
316315
317316
Notes
318317
-----
@@ -329,7 +328,7 @@ def __init__(self, ax, label, valmin, valmax, valinit=0.5, valfmt='%1.2f',
329328
if slidermax is not None and not hasattr(slidermax, 'val'):
330329
raise ValueError("Argument slidermax ({}) has no 'val'"
331330
.format(type(slidermax)))
332-
if orientation not in ['horizontal', 'vertical']:
331+
if orientation not in {'horizontal', 'vertical'}:
333332
raise ValueError("Argument orientation ({}) must be either"
334333
"'horizontal' or 'vertical'".format(orientation))
335334

0 commit comments

Comments
 (0)
0