Skip to content

area

plot · scripts/plot/draw/area.m

: area (y)
: area (x, y)
: area (…, basevalue)
: area (…, prop, val)
: area (ax, …)
: h = area (…)

Draw a filled area plot.

A vector y gives one filled curve; the columns of a matrix are stacked cumulatively, one filled band per column. The abscissae x default to 1:rows (y). The filled region starts at basevalue (default 0).

The return value is a column vector of group objects, one per column of y, carrying XData, YData, BaseValue, FaceColor, EdgeColor, LineWidth and LineStyle.