File: xarrows.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (40 lines) | stat: -rw-r--r-- 1,280 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
xarrows           Scilab Group           Scilab Function            xarrows
NAME
   xarrows - draw a set of arrows
  
CALLING SEQUENCE
 xarrows(nx,ny,[arsize,style])
PARAMETERS
 nx,ny    : real vectors or matrices of same size.
          
 arsize   : real scalar, size of the arrow head. The default value can be
          obtained  by setting arsize to -1.
          
 style    : matrix or scalar. If style is a positive scalar  it gives the
          dash style to use for all arrows. If it is a negative scalar 
          then the current dash style is used. If it is a vector style(i)
          gives the style to use for arrow i.
          
DESCRIPTION
   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.
  
EXAMPLE
 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")
AUTHOR
   J.Ph.C.