Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - English

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2024.1.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Graphics > polygon > xpolys


draw a set of polylines or polygons

Calling Sequence




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


vector of size n.


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). Use xset() to see the meaning of the ids.

  • If draw(i) is strictly positive, the line style (or color) with id draw(i) is used to draw polyline i. Use xset() to see the meaning of the ids.


plot2d(0,0,-1,"012"," ",[0,0,1,1])

See Also

  • xfpoly — fill a polygon
  • xfpolys — fill a set of polygons
  • xpoly — draw a polyline or a polygon
Report an issue
<< xpoly polygon xrpoly >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:13:57 CEST 2015