~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/graphics/xaxis.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
xaxis            Scilab Group            Scilab Function              xaxis
 
2
NAME
 
3
   xaxis - draw an axis 
 
4
  
 
5
CALLING SEQUENCE
 
6
 xaxis(alpha,nsteps,size,init)
 
7
PARAMETERS
 
8
 alpha    : real, slope in degree of the axis.
 
9
          
 
10
 nsteps   : real vector of size 2, number of big and small intervals.
 
11
          
 
12
 size     : real vector of size 3, size of the small intervals, and small
 
13
          and big tics.
 
14
          
 
15
 init     : real vector of size 2, origin of the axis.
 
16
          
 
17
DESCRIPTION
 
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.
 
25
  
 
26
             example : n1=3, n2=2, alpha=0
 
27
                     (s2*c1) 
 
28
             |     (s2)   |            |           |
 
29
             |______|_____|_____|______|_____|_____|
 
30
                s1
 
31
EXAMPLE
 
32
 x=[-%pi:0.1:%pi]';
 
33
 // plot without axis
 
34
 plot2d(x,sin(x),1,"010"," ",[-4 -1 4 1])
 
35
 // draw x axis
 
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")
 
39
 // draw y axis
 
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")
 
43
AUTHOR
 
44
   J.Ph.C.
 
45