FUNCTION REFERENCE
fill
Filled 2-D polygons.
Filled 2-D polygons.
Syntax
p = fill(x, y, c)Syntax
p = fill(x1, y1, c1, x2, y2, c2, ...)Syntax
p = fill(..., Name, Value)Fills the polygon with corners (x, y) in colour c (a colour letter, colour name or RGB triple) with a black outline. Matrix x and y give one polygon per column. Options: FaceColor, EdgeColor, LineStyle, LineWidth and DisplayName. Returns patch handles.
Example
p = fill([0 1 1 0], [0 0 1 1], 'r'); get(p, 'Type') % 'patch'Differences from MATLAB: colour data (scalars or per-vertex values mapped through a colormap) is not supported; polygons have at most 3000 vertices.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.