matplotlib.pyplot.
step
(x, y, *args, where='pre', data=None, **kwargs)[source]¶
Make a step plot.
Call signatures:
step(x, y, [fmt], *, data=None, where='pre', **kwargs) step(x, y, [fmt], x2, y2, [fmt2], ..., *, where='pre', **kwargs)
This is just a thin wrapper around plot
which changes some formatting options. Most of the concepts and parameters of plot can be used here as well.
1-D sequence of x positions. It is assumed, but not checked, that it is uniformly increasing.
1-D sequence of y levels.
A format string, e.g. 'g' for a green line. See plot
for a more detailed description.
Note: While full format strings are accepted, it is recommended to only specify the color. Line styles are currently ignored (use the keyword argument linestyle instead). Markers are accepted and plotted on the given positions, however, this is a rarely needed feature for step plots.
An object with labelled data. If given, provide the label names to plot in x and y.
Define where the steps should be placed:
(x[i-1], x[i]]
has the value y[i]
.[x[i], x[i+1])
has the value y[i]
.A list of Line2D
objects representing the plotted data.
Additional parameters are the same as those for plot
.
Notes
matplotlib.pyplot.step
¶
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4