matplotlib.pyplot.
hlines
(y, xmin, xmax, colors='k', linestyles='solid', label='', *, data=None, **kwargs)[source]¶Plot horizontal lines at each y from xmin to xmax.
Parameters: | y : scalar or sequence of scalar
xmin, xmax : scalar or 1D array_like
colors : array_like of colors, optional, default: 'k' linestyles : {'solid', 'dashed', 'dashdot', 'dotted'}, optional label : string, optional, default: '' |
---|---|
Returns: | lines : |
Other Parameters: | **kwargs : |
Notes
Note
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]:
Objects passed as data must support item access (data[<arg>]
) and
membership test (<arg> in data
).