rectangle
- :
h =rectangle()¶ - :
h =rectangle("Position", [x y w h])¶ - :
h =rectangle(…, "Curvature", c)¶ - :
h =rectangle(…, prop, val)¶ - :
h =rectangle(ax, …)¶ Add a rectangle, rounded rectangle or ellipse to the axes.
Positionis[x y width height](default[0 0 1 1]).Curvatureis a pair[cx cy]in the range 0 to 1 giving the relative rounding of the corners;[1 1]yields an ellipse. A scalar curvature applies to both directions. Further properties areFaceColor(default"none"),EdgeColor,LineStyleandLineWidth.The shape is added to the current axes without clearing it.