fill
Create filled 2-D patches.
📝 Syntax
fill(X, Y, C)
fill(..., propertyName, propertyValue)
fill(ax, ...)
go = fill(...)
📥 Input argument
X - x-coordinates: vector or matrix.
Y - y-coordinates: vector or matrix.
C - Color array: scalar, vector, m-by-n-by-3 array of RGB triplets.
ax - a scalar graphics object value: parent container, specified as a axes.
propertyName - a scalar string or row vector character.
propertyValue - a value.
📤 Output argument
go - a graphics object: patch type.
📄 Description
fill(X, Y, C) creates a 2D polygonal shape with vertices defined byX and Y coordinates, and fills the shape with colorC.
fill(..., PropertyName, PropertyValue, ...) sets optional properties for the fill/patch object using name-value pairs.
go = fill(...) returns the handlego to the created patch object.
Property Name-Value Pairs:
'FaceColor': color of the filled shape. FaceColor can be a character vector or a 3-element RGB vector. Default:'flat'.
'EdgeColor': color of the edges of the polygonal shape. EdgeColor can be a character vector or a 3-element RGB vector. Default:'none'.
'LineWidth': width of the edges of the polygonal shape. Default:0.5.
'LineStyle': style of the edges of the polygonal shape. LineStyle can be a character vector or a line style code. Default:'-'.
'FaceAlpha': transparency of the filled shape. FaceAlpha can be a scalar between 0 and 1. Default:1.
'EdgeAlpha': transparency of the edges of the polygonal shape. EdgeAlpha can be a scalar between 0 and 1. Default:1.
'Parent': handle of the parent object for the patch. Default:gca().
'Vertices': matrix of vertex coordinates. The matrix must have size N-by-2 or N-by-3, where N is the number of vertices. Default: the vertex coordinates are specified by theX, Y, and Z input arguments.
💡 Examples
Alpha channel
🔗 See also
🕔 History
1.0.0
initial version
Last updated
Was this helpful?