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 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97
|
.TH xsetech 2 "April 1993" "Scilab Group" "Scilab Function"
.so ../sci.an
.SH NAME
xsetech - set the sub-window of a graphics window for plotting
.SH CALLING SEQUENCE
.nf
xsetech(wrect,[frect,logflag])
xsetech(wrect=[...],frect=[..],logflag="..", arect=[...])
xsetech()
.fi
.SH PARAMETERS
.TP 9
wrect
: vector of size 4, defining the sub-window to use.
.TP 10
frect
: vector of size 4.
.TP 10
logflag
: 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.
.TP
arect
: vector of size 4.
.SH DESCRIPTION
.LP
\fVxsetech\fR is mainly used to set the sub-window of the graphics
window which will be used for plotting. The sub-window is specified
with the parameter \fVwrect=[x,y,w,h]\fR (upper-left point, width,
height). The values in \fVwrect\fR are specified using proportion of
the width or height of the current graphic window. For instance
\fVwrect=[0,0,1,1]\fR means that the whole graphics window will be
used, and \fVwrect=[0.5,0,0.5,1]\fR means that the graphics region
will be the right half of the graphics window.
\fVxsetech\fR also set the current graphics scales for 2D plotting and
can be used in conjunction with graphics routines which request the
current graphics scale (for instance \fVstrf="x0z"\fR
or\fVframeflag=0\fR in \fVplot2d\fR).
\fVfrect=[xmin,ymin,xmax,ymax]\fR is used to set the graphics scale
and is just like the \fVrect\fR argument of \fVplot2d\fR. If
\fVfrect\fR is not given the current value of the graphic scale
remains unchanged. the default value of \fVrect\fR is \fV[0,0,1,1]\fR
(at window creation, when switching back to default value with
\fVxset('default')\fR or when clearing graphic recorded events
\fVxbasc()\fR).
\fVarect=[x_left, x_right,y_up,y_down]\fR is used to set the graphic
frame inside the subwindow. The graphic frame is specified (like
\fVwrect\fR) using proportion of the width or height of the current
graphic subwindow. Default value is \fV1/8*[1,1,1,1]\fR. If
\fVarect\fR is not given, current value remains unchanged.
.SH EXAMPLE
.nf
// To get a graphical explanation of xsetech parameters enter:
exec('SCI/demos/graphics/xsetechfig.sce');
// Here xsetech is used to split the graphics window in two parts
// first xsetech is used to set the first sub-window
// and the graphics scale
xsetech([0,0,1.0,0.5],[-5,-3,5,3])
// we call plot2d with the "001" option to use the graphics scale
// set by xsetech
plot2d([1:10]',[1:10]',1,"001"," ")
// then xsetech is used to set the second sub-window
xsetech([0,0.5,1.0,0.5])
// the graphics scale is set by xsetech to [0,0,1,1] by default
// and we change it with the use of the rect argument in plot2d
plot2d([1:10]',[1:10]',1,"011"," ",[-6,-6,6,6])
// Four plots on a single graphics window
xbasc()
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 sub-window
xsetech([0,0,1,1])
// One plot with changed arect
xbasc()
xset("default")
xsetech(arect=[0,0,0,0])
x=1:0.1:10;plot2d(x',sin(x)')
xbasc()
xsetech(arect=[1/8,1/8,1/16,1/4])
x=1:0.1:10;plot2d(x',sin(x)')
xbasc()
xset("default")
.fi
.SH SEE ALSO
xgetech, subplot, isoview, square
.SH AUTHOR
J.Ph.C.
|