File: xarrows.man

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (54 lines) | stat: -rw-r--r-- 1,383 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.TH xarrows 2 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
xarrows - draw a set of arrows
.SH CALLING SEQUENCE
.nf
[]=xarrows(nx,ny,[arsize,style])
.fi
.SH PARAMETERS
.TP
nx
: real matrix of size (n1,n2)
.TP
ny
: real matrix of size (n1,n2)
.TP
arsize
: real scalar (size of the arrow head). The default value can be obtained 
by setting arsize to value \fV-1.0\fR.
.TP
style
: a matrix of size \fVn\fR or a scalar. If \fVstyle\fR is a positive scalar 
it gives the dash style to use for all arrows, if it is a negative scalar 
then current dash style is used, if it is a vector \fVstyle[i]\fR
gives the style to use for arrow \fVi\fR. 
.LP
.SH DESCRIPTION
This function draws a set of arrows which are given by the vector or
matrices \fVnx\fR and \fVny\fR.
The ith arrow is defined by \fV(nx(i),ny(i))-->(nx(i+1),ny(i+1))\fR.
\fVnx, ny\fR can also be matrices :
.nf
nx=[ xi_1,x1_2,...; xf_1,xf_2,...]
ny=[ yi_1,y1_2,...; yf_1,yf_2,...]
.fi
in which case the arrows are  \fV(xi_k,yi_k)->(xf_k,yf_k)\fR
.LP
This function uses the current graphic scale 
which can be set by calling a high level drawing function such as \fVplot2d\fR.
.SH EXAMPLE
.nf
x=2*%pi*(0:9)/8;
x1=[sin(x);9*sin(x)];
y1=[cos(x);9*cos(x)];
plot2d([-10,10],[-10,10],[-1,-1],"022");
xset('clipgrf')
xarrows(x1,y1,1,1:10);
xset('clipoff')
.fi
.SH SEE ALSO
plot2d, xchange
.SH AUTHOR
J.Ph.C..