line
Create primitive line.
Syntax
go = line()
po = line(x, y)
go = line(x, y, z)
go = line(ax, x, y, z)
go = line(ax, x, y, z, propertyName, propertyValue)
Input argument
x, y , z - a scalar graphics object value: parent container, specified as a figure.
ax - Target axes: axes object.
propertyName - a scalar string or row vector character.
propertyValue - a value.
Output argument
go - a graphics object: line type.
Description
line(x, y) creates a line in the current axes with vectors x and y.
line(x, y, z) creates a line in three-dimensional coordinates.
Properties:
Children [] (currently not used).
Color Line color: RGB triplet, [0, 0, 0] or hexadecimal color code.
DisplayName Legend label: character vector or string scalar, '' (default).
LineStyle Line style: '--', ':', '-.', 'none' or '-' (default).
LineWidth Line width: scalar positive value.
MarkerMarker symbol: 'o' (circle), '+' (Plus sign), '*' (asterik), '.' (point), 'x' (cross), '_' (horizontal line) , '|' (vertical line), 'square', 'diamond', '^' (Upward-pointing triangle), 'v' (Downward-pointing triangle), '>' (Right-pointing triangle), '<' (Left-pointing triangle), 'pentagram', 'hexagram', 'none'(default).
MarkerEdgeColor Marker outline color: RGB triplet.
MarkerFaceColor Marker fill color: RGB triplet.
MarkerSize Marker size: scalar positive value.
Parent Parent: axes graphics object.
Tag Object identifier: string scalar, character vector, '' (default).
Type Type of graphics object: 'line'
UserData User data: array, [] (default).
Visible State of visibility: 'off' or 'on' (default).
XData x values: vector, [0 1] (default).
YData y values: vector, [0 1] (default).
ZData z values: vector, [] (default).
Examples
See also
History
Version | Description |
---|---|
1.0.0 | initial version |
Author
Allan CORNET
Last updated