1
xgetech Scilab Group Scilab Function xgetech
3
xgetech - get the current graphics scale
6
[wrect,frect,logflag,arect]=xgetech()
8
wrect,frect : real vectors.
10
logflag : string of size 2 "xy".
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.
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:
22
wrect=[0 0 1 1] means that the whole graphics window is used.
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.
35
xsetech([0,0,1.0,0.5])
37
// then xsetech is used to set the second sub window
38
xsetech([0,0.5,1.0,0.5])
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();