<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) INRIA - Djalel Abdemouche
 *
 * Copyright (C) 2012 - 2016 - Scilab Enterprises
 *
 * This file is hereby licensed under the terms of the GNU GPL v2.0,
 * pursuant to article 5.3.4 of the CeCILL v.2.1.
 * This file was originally licensed under the terms of the CeCILL v2.1,
 * and continues to be available under such terms.
 * For more information, see the COPYING file which you should have received
 * along with this program.
 *
 -->
<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="sda">
    <refnamediv>
        <refname>sda</refname>
        <refpurpose>reSets the Default Axes to its factory values</refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>
            sda()
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Description</title>
        <para>
            This routine resets the properties of the axes's model to their factory values.
        </para>
        <para>
            <literal>sda()</literal> is equivalent to <literal>set(gda(),"default_values",1)</literal>.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
x=[0:0.1:2*%pi]';
f=get("default_figure"); // get the handle of the model figure
a=get("default_axes");   // get the handle of the model axes
                         // setting its' properties
f.figure_size=[1200 900];
f.figure_position=[0 0];
a.background=4;
a.box="off";
a.foreground=5;
a.labels_font_color=25;
a.labels_font_size=4;
a.sub_tics=[7 3];
a.x_location="middle";
a.y_location="middle";
a.tight_limits="on";
a.thickness=2;
a.grid=[-1 24];
subplot(221);
plot2d(x-2,sin(x))
subplot(222);
plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
sda() // return to the default values of the axes' model
subplot(223);
plot2d(x-2,sin(x))
subplot(224);
plot2d(x-6,[2*cos(x)+.7 2*cos(x)+.9 cos(2*x) .2+sin(3*x)],[-1,-2,-3 -4])
close(0)
plot2d(x-2,sin(x))
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="sdf">sdf</link>
            </member>
            <member>
                <link linkend="gda">gda</link>
            </member>
            <member>
                <link linkend="gdf">gdf</link>
            </member>
            <member>
                <link linkend="set">set</link>
            </member>
            <member>
                <link linkend="graphics_entities">graphics_entities</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
