matplotlib 3.5.1

Other ParametersParametersReturnsBackRef
stairs(values, edges=None, *, orientation='vertical', baseline=0, fill=False, data=None, **kwargs)

Other Parameters

data : indexable object, optional

If given, all parameters also accept a string s , which is interpreted as data[s] (unless this raises an exception).

**kwargs :

~matplotlib.patches.StepPatch properties

Parameters

values : array-like

The step heights.

edges : array-like

The edge positions, with len(edges) == len(vals) + 1 , between which the curve takes on vals values.

orientation : {'vertical', 'horizontal'}, default: 'vertical'

The direction of the steps. Vertical means that values are along the y-axis, and edges are along the x-axis.

baseline : float, array-like or None, default: 0

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.

fill : bool, default: False

Whether the area under the step curve should be filled.

Returns

StepPatch : `matplotlib.patches.StepPatch`

A stepwise constant function as a line with bounding edges or a filled plot.

Examples

See :

Back References

The following pages refer to to this document either explicitly or contain code examples using this.

matplotlib.pyplot.plotting

Local connectivity graph

Hover to see nodes names; edges to Self not shown, Caped at 50 nodes.

Using a canvas is more power efficient and can get hundred of nodes ; but does not allow hyperlinks; , arrows or text (beyond on hover)

SVG is more flexible but power hungry; and does not scale well to 50 + nodes.

All aboves nodes referred to, (or are referred from) current nodes; Edges from Self to other have been omitted (or all nodes would be connected to the central node "self" which is not useful). Nodes are colored by the library they belong to, and scaled with the number of references pointing them


File: /matplotlib/pyplot.py#2599
type: <class 'function'>
Commit: