File: xstring.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 (56 lines) | stat: -rw-r--r-- 1,517 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
55
56
.TH xstring 2 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
xstring - display a matrix of strings
.SH CALLING SEQUENCE
.nf
[]=xstring(x,y,str,[angle,flag])
.fi
.SH PARAMETERS 
.TP 15
x,y
: real scalars (point coordinates)
.TP
str
: matrix of strings
.TP
angle
: real (angle in degree) (clockwise) (default value =0)
.TP 
flag
: integer 
.SH DESCRIPTION
draws a matrix of strings ( each line of the matrix stands for a line of text
and the line elements are separated by a white space) at location \fVx,y\fR
( lower-left point ) in the current graphic scale. \fVangle\fR if given gives the slope in degree
to use for drawing the string. if  \fVframe=1\fR a box is drawn around the string 
(only if \fVangle=0\fR )
.SH EXAMPLE 
.nf
plot2d([0;1],[0;1],0)
xstring(0.5,0.5,["Scilab","is" ; "Not","Basilc"])
//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 '];

xset('default');              //default graphic parameters
xset("window",1);             //set window number to 1
xclear();                     
plot2d([0;1],[0;2],0);
xstring(0.1,1.8,alphabet)     //alphabet
xstring(0.1,1.6,alphabet,20)  //angle
xset("font",1,1)              //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')
.fi
.SH AUTHOR
J.Ph.C..