Plot horizontal lines at each y from xmin to xmax.
y-indexes where to plot the lines.
Respective beginning and end of each line. If scalars are provided, all lines will have 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):
y, xmin, xmax, colors
LineCollection
properties.
matplotlib.axes.Axes.hlines
© 2012–2021 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/3.5.1/api/_as_gen/matplotlib.axes.Axes.hlines.html