On this page
matplotlib.pyplot.vlines
matplotlib.pyplot.vlines(x, ymin, ymax, colors='k', linestyles='solid', label='', hold=None, data=None, **kwargs)-
Plot vertical lines.
Plot vertical lines at each
xfromymintoymax.Parameters: x : scalar or 1D array_like
x-indexes where to plot the lines.
ymin, ymax : scalar or 1D array_like
Respective beginning and end of each line. If scalars are provided, all lines will have same length.
colors : array_like of colors, optional, default: ‘k’
linestyles : [‘solid’ | ‘dashed’ | ‘dashdot’ | ‘dotted’], optional
label : string, optional, default: ‘’
Returns: lines :
LineCollectionOther Parameters: **kwargs :
LineCollectionproperties.See also
hlines- horizontal lines
axvline- vertical line across the axes
- 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>]: * All arguments with the following names: ‘colors’, ‘x’, ‘ymax’, ‘ymin’.
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.pyplot.vlines.html