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 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<!--
* Ajouter ici d'ventuels commentaires sur le fichier XML
-->
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="axis" xml:lang="en">
<info>
<pubdate>$LastChangedDate: 26-05-2009 $</pubdate>
</info>
<refnamediv>
<refname>axis</refname>
<refpurpose> Sets ot gets the axis limits of a 2D or 3D graph
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<title>Calling Sequence</title>
<synopsis>vect = axis(value)</synopsis>
</refsynopsisdiv>
<refsection>
<title>Parameters</title>
<variablelist>
<varlistentry>
<term>value</term>
<listitem>
<para>string or 1 by n vector, n=4 or n=6</para>
</listitem>
</varlistentry>
<varlistentry>
<term>vect</term>
<listitem>
<para>4-vector [XMIN XMAX YMIN YMAX] or 6-vector [XMIN XMAX YMIN
YMAX ZMIN ZMAX]</para>
</listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection>
<title>Description</title>
<para>To get the axis limits, use the syntax : AX=axis()</para>
<para>To set the axis limits after a plot use the syntax :
axis(value)</para>
<para>Value can be : </para>
<itemizedlist>
<listitem>
<para>a 4-vector [XMIN XMAX YMIN YMAX] or 6-vector [XMIN XMAX YMIN
YMAX ZMIN ZMAX] then the plot limits are fixed to the given
limits.</para>
</listitem>
<listitem>
<para>a string</para>
<para>The allowed strings are Common 2D/3D values</para>
<itemizedlist>
<listitem>
<para>'equal' (isometric scale) </para>
</listitem>
<listitem>
<para>'normal' (aspect ratio changes when the figure is resized) </para>
</listitem>
<listitem>
<para>'ij' (the coordinate system origin is placed in the upper left corner) </para>
</listitem>
<listitem>
<para>'xy' (default cartesian system) </para>
</listitem>
<listitem>
<para>'off' (no axis is drawn) </para>
</listitem>
<listitem>
<para>'box' (a box enclosing the plot without ticks)</para>
</listitem>
<listitem>
<para>'tight' (the graph fits tightly the axis limits)</para>
</listitem>
<listitem>
<para>'auto' (axis limits are computed by considering the minimum and maximum values of x,y,z data)</para>
</listitem>
<listitem>
<para>'left' (the y axis is displayed on the left)</para>
</listitem>
<listitem>
<para>'right' (the y axis is displayed on the right)</para>
</listitem>
<listitem>
<para>'center' (the x and y axis cross at the center of the plot
box)</para>
</listitem>
<listitem>
<para>'origin' (the x and y axis cross at the (0,0,0) point)</para>
</listitem>
</itemizedlist>
</listitem>
</itemizedlist>
</refsection>
<refsection>
<title>Examples</title>
<programlisting role="example">t=linspace(0,2*%pi,63);
plot(cos(t),sin(t));
axis equal
plot(cos(t),sin(t));
axis([0 1 0 1]);</programlisting>
</refsection>
<refsection>
<title>See Also</title>
<simplelist type="inline">
<member>
<link linkend="plot">plot</link>
</member>
<member>
<link linkend="plot3">plot3</link>
</member>
<member>
<link linkend="mesh">mesh</link>
</member>
<member>
<link linkend="surf">surf</link>
</member>
</simplelist>
</refsection>
<refsection>
<title>Authors</title>
<simplelist type="vert">
<member>Stphane Mottelet</member>
</simplelist>
</refsection>
</refentry>
|