Skip to content

stem

plot · scripts/plot/draw/stem.m

: stem (y)
: stem (x, y)
: stem (…, "filled")
: stem (…, linespec)
: stem (…, prop, val)
: stem (ax, …)
: h = stem (…)

Draw a stem plot of discrete data.

Vertical lines run from the base value (default 0) to each data point, which is marked. The columns of a matrix y give one series each; a vector x is shared by all series. The option "filled" fills the markers with the line colour.

The return value is a column vector of group objects, one per series, with the properties XData, YData, BaseValue, Color, LineStyle, Marker and MarkerFaceColor.