Draw a stepwise constant function as a line or a filled plot.
edges define the x-axis positions of the steps. values the function values between these steps. Depending on fill, the function is drawn either as a continuous line with vertical segments at the edges, or as a filled area.
The step heights.
The step 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.
StepPatch
If given, all parameters also accept a string s, which is interpreted as data[s] (unless this raises an exception).
StepPatch properties
matplotlib.axes.Axes.stairs
© 2012–2023 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
https://matplotlib.org/stable/api/_as_gen/matplotlib.axes.Axes.stairs.html