ed1d1a52b410a79f567a92d00e3295a7682882e8
[scilab.git] / scilab / modules / graphics / help / en_US / axes_operations / square.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA - Serge Steer
5  *
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <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"  xml:lang="en" xml:id="square">
17     <refnamediv>
18         <refname>square</refname>
19         <refpurpose>
20             set scales for isometric plot (change the size of the window)
21         </refpurpose>
22     </refnamediv>
23     <refsynopsisdiv>
24         <title>Syntax</title>
25         <synopsis>square(xmin, ymin, xmax, ymax)</synopsis>
26     </refsynopsisdiv>
27     <refsection>
28         <title>Arguments</title>
29         <variablelist>
30             <varlistentry>
31                 <term>xmin, xmax, ymin, ymax</term>
32                 <listitem>
33                     <para>four real values.</para>
34                 </listitem>
35             </varlistentry>
36         </variablelist>
37     </refsection>
38     <refsection>
39         <title>Description</title>
40         <para>
41             <function>square</function> is used to have isometric scales on the x
42             and y axes. The requested values <literal>xmin</literal>,
43             <literal>xmax</literal>, <literal>ymin</literal>,
44             <literal>ymax</literal> are the boundaries of the graphics frame
45             and <function>square</function> changes the graphics window
46             dimensions in order to have an isometric plot.
47             <function>square</function> sets the current graphics scales
48             and can be used in conjunction with graphics routines which request
49             the current graphics scale (for instance <code>strf="x0z"</code> in
50             <function>plot2d</function>).
51         </para>
52     </refsection>
53     <refsection>
54         <title>Examples</title>
55         <programlisting role="example"><![CDATA[
56 t=[0:0.1:2*%pi]';
57 plot2d(sin(t),cos(t))
58 clf()
59 square(-1,-1,1,1)
60 plot2d(sin(t),cos(t))
61  ]]></programlisting>
62     </refsection>
63     <refsection role="see also">
64         <title>See also</title>
65         <simplelist type="inline">
66             <member>
67                 <link linkend="isoview">isoview</link>
68             </member>
69             <member>
70                 <link linkend="xsetech">xsetech</link>
71             </member>
72         </simplelist>
73     </refsection>
74 </refentry>