xpolys
draw a set of polylines or polygons
Syntax
xpolys(xpols,ypols,[draw]) hdl = xpolys(...)
Arguments
- xpols,ypols
matrices of the same size (p,n) (points of the polylines).
- draw
vector of size n.
- hdl
This optional output is a vector containing the handles of the created
Polyline
entities. Usehdl
to modify properties of a specific or all entities after they are created. For a list of properties, see polyline_properties.
Description
xpolys
draws a set of polylinse using marks or dashed lines.
The coordinates of each polyline
are stored in a column of xpols
and ypols
.
The style of polyline i is given by draw(i)
:
If
draw(i)
is negative, the mark with id-draw(i)
is used to draw polyline i (marks are drawn using the current pattern). See the polyline properties to see ids of available marks.If
draw(i)
is strictly positive, the line style (or color) with iddraw(i)
is used to draw polyline i. See the polyline properties to see ids of available line styles.
Examples
See also
History
Версия | Описание |
2025.0.0 | Function returns the created handle(s). |
Report an issue | ||
<< xpoly | polygon | xrpoly >> |