smpl.plot.hlines

smpl.plot.hlines(y, xmin, xmax, colors=None, linestyles='solid', label='', *, data=None, **kwargs)[source]

Plot horizontal lines at each y from xmin to xmax.

Parameters

yfloat or array-like

y-indexes where to plot the lines.

xmin, xmaxfloat or array-like

Respective beginning and end of each line. If scalars are provided, all lines will have the same length.

colors : list of colors, default: :rc:`lines.color`

linestyles : {‘solid’, ‘dashed’, ‘dashdot’, ‘dotted’}, optional

label : str, default: ‘’

Returns

~matplotlib.collections.LineCollection

Other Parameters

dataindexable object, optional

If given, the following parameters also accept a string s, which is interpreted as data[s] (unless this raises an exception):

y, xmin, xmax, colors

**kwargs : ~matplotlib.collections.LineCollection properties.

See Also

vlines : vertical lines axhline : horizontal line across the Axes