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

« back to all changes in this revision

Viewing changes to man/graphics/xgetech.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
xgetech           Scilab Group           Scilab Function            xgetech
 
2
NAME
 
3
   xgetech - get the current graphics scale
 
4
  
 
5
CALLING SEQUENCE
 
6
 [wrect,frect,logflag,arect]=xgetech()
 
7
PARAMETERS
 
8
 wrect,frect   : real vectors.
 
9
               
 
10
 logflag       : string of size 2 "xy".
 
11
               
 
12
DESCRIPTION
 
13
   xgetech returns the current graphics scale (of the current window).  The
 
14
  rectangle [xmin,ymin,xmax,ymax] given by frect is the size of the whole
 
15
  graphics window.  The plotting will be made in the region of the current
 
16
  graphics window specified by wrect.
 
17
  
 
18
   wrect=[x,y,w,h] (upper-left point, width, height) describes a region 
 
19
  inside  the graphics window. The values in wrect are specified using
 
20
  proportion of the width and height of the graphics window:
 
21
  
 
22
   wrect=[0 0 1 1] means that the whole graphics window is used.
 
23
  
 
24
   wrect=[0.5 0 0.5 1] means that the graphics region is the right  half of
 
25
  the graphics window.  logflag is a string of size 2 "xy", where x and y
 
26
  can be "n" or "l".  "n" stands for  normal and "l" stands for logscale. x
 
27
  stands for the x-axis and y stands for the y-axis.  arect=[x_left,
 
28
  x_right,y_up,y_down] gives the frame size inside the subwindow. The
 
29
  graphic frame is specified (like wrect)  using proportion of the width or
 
30
  height of the current graphic subwindow.  Default value is 1/8*[1,1,1,1].
 
31
  If arect is not given,  current value remains unchanged.  
 
32
  
 
33
EXAMPLE
 
34
 // first subwindow 
 
35
 xsetech([0,0,1.0,0.5])
 
36
 plot2d()
 
37
 // then xsetech is used to set the second sub window 
 
38
 xsetech([0,0.5,1.0,0.5])
 
39
 grayplot()
 
40
 // get the graphic scales of first subwindow 
 
41
 xsetech([0,0,1.0,0.5])
 
42
 [wrect,frect,logflag,arect]=xgetech();
 
43
 // get the graphic scales of second subwindow 
 
44
 xsetech([0,0.5,1.0,0.5])
 
45
 [wrect,frect,logflag,arect]=xgetech();
 
46
 xbasc();
 
47
 xset('default')
 
48
SEE ALSO
 
49
   xsetech 
 
50
  
 
51
AUTHOR
 
52
   J.Ph.C. 
 
53