A stepwise constant function as a line with bounding edges or a filled plot.
The step heights.
The edge positions, with len(edges) == len(vals) + 1
, between which the curve takes on vals values.
The direction of the steps. Vertical means that values are along the y-axis, and edges are along the x-axis.
The bottom value of the bounding edges or when fill=True
, position of lower edge. If fill is True or an array is passed to baseline, a closed path is drawn.
Whether the area under the step curve should be filled.
matplotlib.patches.StepPatch
If given, all parameters also accept a string s
, which is interpreted as data[s]
(unless this raises an exception).
StepPatch
properties
© 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.stairs.html