xsetech(2)

NAME
xsetech - set the subwindow of a graphic window to use for graphics

CALLING SEQUENCE
[]=xsetech(wrect [,frect])

PARAMETERS

wrect
    : a vector of size 4 (subwindow definition)

frect
    : a vector of size 4 (just like the rect argument of plot2d )

DESCRIPTION

This function is mainly used to set the subwindow of the graphic window which will be used for graphics. The subwindow is specified with the parameter wrect=[x,y,w,h] ( Upper-Left Width Height ). The values in wrect are specified using proportion of the width or height of the current graphic window. for example

wrect=[0,0,1.0,1.0] means that all the graphic window will be used.

wrect=[0.5,0,0.5,1.0] means that the graphic region will be the right half of the graphic window.

and can be used in conjunction whith graphic routines which request the current graphic scale (for example strf="x0y" in plot2d ). frect=[xmin,ymin,xmax,ymax] is used to set the graphic scale and is just like the rect argument of plot2d. Its default value is [0,0,1,1].

EXAMPLE
In this first example xsetech is used to split the graphic window in two parts
// xsetech is used to fix the first subwindow
// and the graphic scale
xsetech([0,0,1.0,0.5],[-5,-3,5,3]);
// then we call plot2d with the "001" option to use the graphic scale
// set by xsetech
plot2d((1:10)',(1:10)',-1,"001",' ');
// xsetech is used to fix the second subwindow
xsetech([0,0.5,1.0,0.5]);
// the graphic scale is set by xsetech to [0,0,1,1] by defaut
// and we change it with the use of the rect argument in plot2d
plot2d((1:10)',(1:10)',-1,"011",' ',[-6,-6,6,6]);
A second example with four graphics on a single graphic window
xset("font',2,0);
xsetech([0,0,0.5,0.5]);plot3d();
xsetech([0.5,0,0.5,0.5]);plot2d();
xsetech([0.5,0.5,0.5,0.5]);grayplot();
xsetech([0,0.5,0.5,0.5]);histplot();
// back to default values for the subwindow
xsetech([0,0,1,1]);
xset("default');

AUTHOR
J.Ph.C.