staircase.Stairs.plot#

Stairs.plot(*args, backend='matplotlib', **kwargs)#

Plots the step function.

Parameters
axmatplotlib.axes.Axes, optional

Pre-existing axes to plot onto.

style{“step”, “hlines”}, default “step”

Indicates whether the plot is based on matplotlib.axes.Axes.step() or matplotlib.axes.Axes.hlines()

arrowsbool, default False

Whether or not to plot arrows where there exist intervals of infinite length

arrow_kwargsdict or None, default None

Additional keyword parameters passed to matplotlib.axes.Axes.arrow()

Returns
matplotlib.axes.Axes

Examples

>>> s1.plot()
../../_images/staircase-Stairs-plot-1.png
>>> s1.plot(arrows=True)
../../_images/staircase-Stairs-plot-2.png
>>> s1.plot(style="hlines", arrows=True)
../../_images/staircase-Stairs-plot-3.png