smpl.plot.vlines¶
- smpl.plot.vlines(x, ymin, ymax, colors=None, linestyles='solid', label='', *, data=None, **kwargs)[source]¶
Plot vertical lines at each x from ymin to ymax.
Parameters¶
- xfloat or array-like
x-indexes where to plot the lines.
- ymin, ymaxfloat 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 asdata[s](unless this raises an exception):x, ymin, ymax, colors
**kwargs : ~matplotlib.collections.LineCollection properties.
See Also¶
hlines : horizontal lines axvline : vertical line across the Axes