~ubuntu-branches/ubuntu/trusty/scilab/trusty

« back to all changes in this revision

Viewing changes to modules/graphics/help/en_US/xsetech.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-02 11:02:49 UTC
  • mfrom: (1.4.6)
  • Revision ID: package-import@ubuntu.com-20120802110249-0v5953emkp25geuz
Tags: 5.4.0-beta-2-1~exp1
* New upstream release
* Remove libscilab-java (remove upstream). Use libscilab2-java instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
10
10
 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
11
11
 *
12
12
 -->
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">
14
 
  <info>
15
 
    <pubdate>$LastChangedDate$</pubdate>
16
 
  </info>
 
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">
17
14
  <refnamediv>
18
15
    <refname>xsetech</refname>
19
16
    <refpurpose> set the sub-window of a graphics window for plotting</refpurpose>
90
87
    </para>
91
88
  </refsection>
92
89
  <refsection>
 
90
    <title>Sample</title>
 
91
    <scilab:image>
 
92
      xset("font",2,0)
 
93
      xsetech([0,0,0.5,0.5]);
 
94
      plot3d()
 
95
      xsetech([0.5,0,0.5,0.5]);
 
96
      plot2d()
 
97
      xsetech([0.5,0.5,0.5,0.5]);
 
98
      grayplot()
 
99
      xsetech([0,0.5,0.5,0.5]);
 
100
      histplot()
 
101
      xsetech([0,0,1,1])
 
102
    </scilab:image>
 
103
  </refsection>
 
104
  <refsection>
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])
 
122
 ]]></programlisting>
 
123
    <programlisting role="example"><![CDATA[ 
110
124
// Four plots on a single graphics window 
111
125
clf()
112
126
xset("font",2,0)
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]);
 
128
plot3d()
 
129
xsetech([0.5,0,0.5,0.5]);
 
130
plot2d()
 
131
xsetech([0.5,0.5,0.5,0.5]);
 
132
grayplot()
 
133
xsetech([0,0.5,0.5,0.5]);
 
134
histplot()
117
135
// back to default values for the sub-window 
118
136
xsetech([0,0,1,1])
 
137
 ]]></programlisting>
 
138
    <programlisting role="example"><![CDATA[ 
119
139
// One plot with changed arect 
120
140
clf()
121
 
xset("default")
122
141
xsetech(arect=[0,0,0,0]) 
123
142
x=1:0.1:10;plot2d(x',sin(x)')
 
143
 ]]></programlisting>
 
144
    <programlisting role="example"><![CDATA[ 
124
145
clf()
125
146
xsetech(arect=[1/8,1/8,1/16,1/4])
126
147
x=1:0.1:10;plot2d(x',sin(x)')
127
148
clf()
128
 
xset("default")
129
149
 ]]></programlisting>
130
150
  </refsection>
131
151
  <refsection role="see also">