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

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

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

Scilab help >> Graphics > geometric_shapes > xarrows


draw a set of arrows

Calling Sequence




real vectors or matrices of same size.


real scalar, size of the arrow head. The default value can be obtained by setting arsize to -1.


matrix or scalar. If style is a positive scalar it gives the color to use for all arrows. If it is a negative scalar then the current color is used. If it is a vector style(i) gives the color to use for arrow i.


xarrows draws a set of arrows given by nx and ny. If nx and ny are vectors, the ith arrow is defined by (nx(i),ny(i))-->(nx(i+1),ny(i+1)). If nx and ny are matrices:

nx=[xi_1 x1_2 ...; xf_1 xf_2 ...]
ny=[yi_1 y1_2 ...; yf_1 yf_2 ...]

the k th arrow is defined by (xi_k,yi_k)-->(xf_k,yf_k).

xarrows uses the current graphics scale which can be set by calling a high level drawing function such as plot2d.


x1=[sin(x); 9*sin(x)];
y1=[cos(x); 9*cos(x)];
plot2d([-10,10], [-10,10], [-1,-1], "022")
xarrows(x1, y1, 1, 1:10)
Report an issue
<< xarcs geometric_shapes xfarc >>

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:
Mon Oct 01 17:34:55 CEST 2012