Member of the plots class.
fill(x, y, color)
fill(x1, y1, color1, x2, y2, color2, ... , xn, yn, colorn)
Generates a filled polygon plot.
| Name | Description | ||||||||||||||||
| x | Specifies the x-coordinates of the polygon you want to plot. x is a vector or matrix. size(x) must equal size(y). | ||||||||||||||||
| y | Specifies the y-coordinates of the polygon you want to plot. y is a vector or matrix. | ||||||||||||||||
| color | Specifies a valid color attribute for the plot. color is a string that accepts the following values.
|
If you want to plot more than one filled polygon, use the fill(x1, y1, color1, x2, y2, color2, ... , xn, yn, colorn) syntax. x1, x2, y1, y2, and so on can be vectors or matrices.
This function is not supported in the LabVIEW Run-Time Engine. This function can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.
x = [0.5, 1, 0.5, 0];
y = [0, 0.5, 1, 0.5];
fill(x, y, 'c')
x = [2 3; 4 5; 3 4];
y = [4 3; 5 4; 4 2];
fill(x, y, 'm')