Skip to content

stem3

plot · scripts/plot/draw/stem3.m

: stem3 (z)
: stem3 (x, y, z)
: stem3 (…, linespec)
: stem3 (…, "filled")
: stem3 (…, name, value)
: stem3 (ax, …)
: h = stem3 (…)

Draw data as vertical stems in three dimensions.

A stem rises from z = 0 to z at the position (x, y) and ends in a marker (default ‘o’). For a vector z alone the stems stand at (k, 1); for a matrix they stand on the grid of column and row indices. Matrix data give one object per column. NaN entries draw no stem.

Each result is a group object with the properties XData, YData, ZData, BaseValue, Marker, LineStyle and MarkerFaceColor.