FUNCTION REFERENCE

area

Filled area plot.

Filled area plot.

Syntax

h = area(Y)

Syntax

h = area(X, Y)

Syntax

h = area(..., basevalue)

Syntax

h = area(..., Name, Value)

Fills the region between each column of Y and the one below it: the columns are stacked, so the top of the last area is the row sum. The first area is filled down to basevalue (default 0). Options: BaseValue, FaceColor, EdgeColor, LineWidth and DisplayName. get answers XData, YData and BaseValue.

Example

h = area([1 2 3], [1 2; 3 4; 5 6]); get(h(2), 'YData')   % [2 4 6]

Differences from MATLAB: at most 3000 rows and 24 columns. Face colours come from the plot palette.

These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.