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

Change language to:
Français - 日本語 - Português

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

Scilab help >> Graphics > polygon > xfpoly

xfpoly

fill a polygon

Calling Sequence

xfpoly(xv,yv,[close])

Arguments

xv,yv

two vectors of same size (the points of the polygon).

close

integer. If close=1, the polyline is closed; default value is 0.

Description

xfpoly fills a polygon with the current color. If close is equal to 1 a point is added to the polyline xv,yv to define a polygon.

Examples

x=sin(2*%pi*(0:4)/5);
y=cos(2*%pi*(0:4)/5);
plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
xset("color",5)
xfpoly(x,y)

// News graphics only
e=gce(); // get the current entity (the last created: here the polyline)
e.fill_mode='off';
e.closed = 'off' // the polyline is now open
  
xset("default")

See Also

  • xfpolys — fill a set of polygons
  • xpoly — draw a polyline or a polygon
  • xpolys — draw a set of polylines or polygons

Authors

J.Ph.C.

<< polyline_properties polygon xfpolys >>

Copyright (c) 2022-2024 (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 Oct 05 12:10:01 CEST 2011