matplotlib.pyplot.
vlines
(x, ymin, ymax, colors='k', linestyles='solid', label='', *, data=None, **kwargs)[source]¶Plot vertical lines.
Plot vertical lines at each x from ymin to ymax.
Parameters: | x : scalar or 1D array_like
ymin, ymax : 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 : |
See also
hlines
axvline
data[<arg>]
) and membership test (<arg> in data
).