File: xstring.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 (48 lines) | stat: -rw-r--r-- 1,530 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
xstring           Scilab Group           Scilab Function            xstring
NAME
   xstring - draw strings
  
CALLING SEQUENCE
 xstring(x,y,str,[angle,box])
PARAMETERS
 x,y     : real scalars, coordinates of the lower-left point of the
         strings.
         
 str     : matrix of strings.
         
 angle   : real, clockwise angle in degree; default is 0.
         
 box     : integer, default is 0.
         
DESCRIPTION
   xstring draws the matrix of strings str at location x,y (lower-left
  point) in the current graphic scale: each row of the matrix stands for a
  line of text and row elements stand for words separated by a white space.
   If angle is given, it gives the slope in degree used for drawing the
  strings. If box is 1 and angle is 0, a box is drawn around the strings.
  
EXAMPLE
 plot2d([0;1],[0;1],0)
 xstring(0.5,0.5,["Scilab" "is"; "not" "esilaB"])
 //Other example
 alphabet=["a" "b" "c" "d" "e" "f" "g" ..
           "h" "i" "j" "k" "l" "m" "n" ..
           "o" "p" "q" "r" "s" "t" "u" ..
           "v" "w" "x" "y" "z"];
 xbasc()
 plot2d([0;1],[0;2],0)
 xstring(0.1,1.8,alphabet)     // alphabet
 xstring(0.1,1.6,alphabet,0,1) // alphabet in a box
 xstring(0.1,1.4,alphabet,20)  // angle
 xset("font",1,1)              // use symbol fonts
 xstring(0.1,0.1,alphabet)
 xset("font",1,3)              // change size font
 xstring(0.1,0.3,alphabet)
 xset("font",1,24); xstring(0.1,0.6,"a") //big alpha
 xset("default")
SEE ALSO
   titlepage, xnumb, xstringb, xstringl, xtitle
  
AUTHOR
   J.Ph.C.