Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.2 - Français

Change language to:
English - 日本語 - Português

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

Aide Scilab >> Graphiques > polygon > xfpoly

xfpoly

remplit un polygone

Séquence d'appel

xfpoly(xv,yv,[close])

Paramètres

xv,yv

deux vecteurs de même taille (les points du polygone).

close

entier. Si close=1, la ligne brisée est fermée (valeur par défaut : 0).

Description

xfpoly remplit un polygone avec la couleur courante. Si close est égal à  1, un point est ajouté à  la ligne brisée xv,yv pour définir un polygone.

Exemples

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

Voir aussi

  • xfpolys — fill a set of polygons
  • xpoly — dessine une ligne brisée ou un polygone
  • xpolys — dessine un ensemble de lignes brisées ou de polygones

Auteurs

J.Ph.C.

<< polygon polygon xpoly >>

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:
Thu May 12 11:44:59 CEST 2011