10
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:lang="en" xml:id="xsetech">
15
<pubdate>$LastChangedDate$</pubdate>
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" version="5.0-subset Scilab" xml:lang="en" xml:id="xsetech">
18
15
<refname>xsetech</refname>
19
16
<refpurpose> set the sub-window of a graphics window for plotting</refpurpose>
93
xsetech([0,0,0.5,0.5]);
95
xsetech([0.5,0,0.5,0.5]);
97
xsetech([0.5,0.5,0.5,0.5]);
99
xsetech([0,0.5,0.5,0.5]);
93
105
<title>Examples</title>
94
106
<programlisting role="example"><![CDATA[
95
107
// To get a graphical explanation of xsetech parameters enter:
107
119
// the graphics scale is set by xsetech to [0,0,1,1] by default
108
120
// and we change it with the use of the rect argument in plot2d
109
121
plot2d([1:10]',[1:10]',1,"011"," ",[-6,-6,6,6])
123
<programlisting role="example"><![CDATA[
110
124
// Four plots on a single graphics window
113
xsetech([0,0,0.5,0.5]); plot3d()
114
xsetech([0.5,0,0.5,0.5]); plot2d()
115
xsetech([0.5,0.5,0.5,0.5]); grayplot()
116
xsetech([0,0.5,0.5,0.5]); histplot()
127
xsetech([0,0,0.5,0.5]);
129
xsetech([0.5,0,0.5,0.5]);
131
xsetech([0.5,0.5,0.5,0.5]);
133
xsetech([0,0.5,0.5,0.5]);
117
135
// back to default values for the sub-window
118
136
xsetech([0,0,1,1])
138
<programlisting role="example"><![CDATA[
119
139
// One plot with changed arect
122
141
xsetech(arect=[0,0,0,0])
123
142
x=1:0.1:10;plot2d(x',sin(x)')
144
<programlisting role="example"><![CDATA[
125
146
xsetech(arect=[1/8,1/8,1/16,1/4])
126
147
x=1:0.1:10;plot2d(x',sin(x)')
129
149
]]></programlisting>
131
151
<refsection role="see also">