On this page
matplotlib.axes.Axes.step
Axes.step(x, y, *args, data=None, **kwargs)
-
Make a step plot.
Parameters: x : array_like
1-D sequence, and it is assumed, but not checked, that it is uniformly increasing.
y : array_like
1-D sequence
Returns: list
List of lines that were added.
Other Parameters: where : [ ‘pre’ | ‘post’ | ‘mid’ ]
If ‘pre’ (the default), the interval from
x[i]
tox[i+1]
has levely[i+1]
.If ‘post’, that interval has level
y[i]
.If ‘mid’, the jumps in y occur half-way between the x-values.
Notes
Additional parameters are the same as those for
plot()
.Note
In addition to the above described arguments, this function can take a data keyword argument. If such a data argument is given, the following arguments are replaced by data[<arg>]:
- All arguments with the following names: ‘x’, ‘y’.
© 2012–2017 Matplotlib Development Team. All rights reserved.
Licensed under the Matplotlib License Agreement.
http://matplotlib.org/2.1.0/api/_as_gen/matplotlib.axes.Axes.step.html