Skip to content

patch

plot · scripts/plot/draw/patch.m

: h = patch ()
: h = patch (x, y, c)
: h = patch (x, y, z, c)
: h = patch ("Faces", f, "Vertices", v, …)
: h = patch (s)
: h = patch (…, prop, val)
: h = patch (ax, …)

Create a patch object and return its handle.

The polygon vertices are given by coordinate arrays (one polygon per column), by the "XData"/"YData" properties, by a faces/vertices pair, or by a structure with faces and vertices fields. The colour c is a colour letter or name, an RGB triple, or colour data. Unlike the high-level plotting commands, patch adds to the current axes without clearing it.