1
xaxis Scilab Group Scilab Function xaxis
6
xaxis(alpha,nsteps,size,init)
8
alpha : real, slope in degree of the axis.
10
nsteps : real vector of size 2, number of big and small intervals.
12
size : real vector of size 3, size of the small intervals, and small
15
init : real vector of size 2, origin of the axis.
18
xaxis draws an axis. The direction of the axis is given by alpha in
19
degree. init=[x0 y0] is the initial point of the axis. nsteps=[n1,n2]
20
gives the number of big and small intervals separated by tics.
21
size=[s1,s2,c1] where s1 gives the size of the small intervals, s2 gives
22
the size of the small tics along the axis and s2*c1 gives the size of
23
the big tics. All the sizes are given using the current x-scale and
24
y-scale and are given as dimensions along the drawn axis.
26
example : n1=3, n2=2, alpha=0
29
|______|_____|_____|______|_____|_____|
34
plot2d(x,sin(x),1,"010"," ",[-4 -1 4 1])
36
xpoly([-4 4],[0 0],"lines")
37
xaxis(0,[2 2],[2 0.1 3],[-4 0])
38
xstring(-4.1,-0.25,"-4"); xstring(-0.2,-0.1,"0"); xstring(4,-0.25,"4")
40
xpoly([0 0],[-1 1],"lines")
41
xaxis(90,[2 2],[0.5 0.025 3],[0 1])
42
xstring(-0.5,-1.05,"-1"); xstring(-0.35,0.95,"1")