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
|
xgetech Scilab Group Scilab Function xgetech
NAME
xgetech - get the current graphics scale
CALLING SEQUENCE
[wrect,frect,logflag,arect]=xgetech()
PARAMETERS
wrect,frect : real vectors.
logflag : string of size 2 "xy".
DESCRIPTION
xgetech returns the current graphics scale (of the current window). The
rectangle [xmin,ymin,xmax,ymax] given by frect is the size of the whole
graphics window. The plotting will be made in the region of the current
graphics window specified by wrect.
wrect=[x,y,w,h] (upper-left point, width, height) describes a region
inside the graphics window. The values in wrect are specified using
proportion of the width and height of the graphics window:
wrect=[0 0 1 1] means that the whole graphics window is used.
wrect=[0.5 0 0.5 1] means that the graphics region is the right half of
the graphics window. logflag is a string of size 2 "xy", where x and y
can be "n" or "l". "n" stands for normal and "l" stands for logscale. x
stands for the x-axis and y stands for the y-axis. arect=[x_left,
x_right,y_up,y_down] gives the frame size inside the subwindow. The
graphic frame is specified (like wrect) using proportion of the width or
height of the current graphic subwindow. Default value is 1/8*[1,1,1,1].
If arect is not given, current value remains unchanged.
EXAMPLE
// first subwindow
xsetech([0,0,1.0,0.5])
plot2d()
// then xsetech is used to set the second sub window
xsetech([0,0.5,1.0,0.5])
grayplot()
// get the graphic scales of first subwindow
xsetech([0,0,1.0,0.5])
[wrect,frect,logflag,arect]=xgetech();
// get the graphic scales of second subwindow
xsetech([0,0.5,1.0,0.5])
[wrect,frect,logflag,arect]=xgetech();
xbasc();
xset('default')
SEE ALSO
xsetech
AUTHOR
J.Ph.C.
|