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

Skip to content

Commit ec54a0b

Browse files
committed
DOC mentions kwargs in vlines and hlines
1 parent 58458de commit ec54a0b

File tree

1 file changed

+19
-15
lines changed

1 file changed

+19
-15
lines changed

lib/matplotlib/axes.py

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -3667,25 +3667,27 @@ def hlines(self, y, xmin, xmax, colors='k', linestyles='solid',
36673667
Respective beginning and end of each line. If scalars are
36683668
provided, all lines will have same length.
36693669
3670-
colors : a line collections color argument, either a single color
3671-
or a list of colors
3670+
colors : array_like of colors, optional, default: 'k'
36723671
3673-
linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional,
3674-
default : 'solid'
3672+
linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional
36753673
36763674
label : string, optional, default: ''
36773675
36783676
Returns
36793677
-------
3680-
:class:`~matplotlib.collections.LineCollection`
3678+
matplotlib.collections.LineCollection
36813679
3682-
Example
3683-
--------
3680+
Other parameters
3681+
----------------
3682+
kwargs correspond to matplotlib.collections.LineCollection properties.
3683+
3684+
Notes
3685+
-----
36843686
.. plot:: mpl_examples/pylab_examples/vline_hline_demo.py
36853687
36863688
See also
36873689
--------
3688-
vlines : horizontal lines
3690+
vlines : vertical lines
36893691
"""
36903692

36913693
# We do the conversion first since not all unitized data is uniform
@@ -3753,20 +3755,22 @@ def vlines(self, x, ymin, ymax, colors='k', linestyles='solid',
37533755
Respective beginning and end of each line. If scalars are
37543756
provided, all lines will have same length.
37553757
3756-
colors : a line collections color argument, either a single color
3757-
or a list of colors
3758+
colors : array_like of colors, optional, default: 'k'
37583759
3759-
linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional,
3760-
default : 'solid'
3760+
linestyles : ['solid' | 'dashed' | 'dashdot' | 'dotted'], optional
37613761
37623762
label : string, optional, default: ''
37633763
37643764
Returns
37653765
-------
3766-
:class:`~matplotlib.collections.LineCollection`
3766+
matplotlib.collections.LineCollection
37673767
3768-
Example
3769-
-------
3768+
Other parameters
3769+
----------------
3770+
kwargs correspond to matplotlib.collections.LineCollection properties.
3771+
3772+
Notes
3773+
-----
37703774
.. plot:: mpl_examples/pylab_examples/vline_hline_demo.py
37713775
37723776
See also

0 commit comments

Comments
 (0)