Plot vertical lines at each x from ymin to ymax.
x-indexes where to plot the lines.
Respective beginning and end of each line. If scalars are provided, all lines will have the same length.
rcParams["lines.color"] (default: 'C0')
If given, the following parameters also accept a string s, which is interpreted as data[s] (unless this raises an exception):
x, ymin, ymax, colors
LineCollection properties.
Note
This is the pyplot wrapper for axes.Axes.vlines.
matplotlib.pyplot.vlines
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.pyplot.vlines.html