matplotlib.pyplot.
stem
(*args, **kwargs)¶Create a stem plot.
A stem plot plots vertical lines at each x location from the baseline to y, and places a marker there.
Call signature:
stem([x,] y, linefmt=None, markerfmt=None, basefmt=None)
The x-positions are optional. The formats may be provided either as positional or as keyword-arguments.
Parameters: | x : array-like, optional
y : array-like
linefmt : str, optional
markerfmt : str, optional
basefmt : str, optional
bottom : float, optional, default: 0
label : str, optional, default: None
|
||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns: |
|
||||||||||
Other Parameters: | |||||||||||
**kwargs
|
Notes
See also
The MATLAB function stem which inspired this method.
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>]:
matplotlib.pyplot.stem
¶