<< xpoly polygon xrpoly >>

Scilab Help >> Graphics > polygon > xpolys

xpolys

draw a set of polylines or polygons

Syntax

xpolys(xpols,ypols,[draw])

Arguments

xpols,ypols

matrices of the same size (p,n) (points of the polylines).

draw

vector of size n.

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):

Examples

plot2d(0,0,-1,"012"," ",[0,0,1,1])
rand("uniform")
gca().foreground = 3;
xpolys(rand(3,5),rand(3,5),[-1,-2,0,1,2])

See also


Report an issue
<< xpoly polygon xrpoly >>