<?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="gda">
    <refnamediv>
        <refname>gda</refname>
        <refpurpose>Return handle of default
            axes.
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>a = gda()
            a = get("default_axes")
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>a</term>
                <listitem>
                    <para>handle, the handle of the default axes.</para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>The default axes is a graphic entity which is never drawn. It is used
            as a reference for the axes properties default values. These default
            properties values are used to initialize new axes inside figures.
        </para>
        <para>
            The <literal>gda</literal> function returns the handle on the default axes.
            The user can use this handle to set or get the axes properties default
            values.
        </para>
        <para>
            <note>
                Note that an equivalent default graphic entity exists for figure
                entities too (see <literal>gdf</literal>).
            </note>
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
a=gda() // get the handle of the model axes
// set its' properties
a.box="off";
a.foreground=2;
a.labels_font_size=3;
a.labels_font_color=5;
a.sub_tics=[5 5 3];
a.x_location="top";

//now used the model axes for drawing
subplot(211) //create an axes entity
plot2d()

// set other model's properties
a.background=color('gray')
a.grid=[5 5 5];
subplot(212)
t=0:0.1:5*%pi;
plot2d(sin(t),cos(t))

set(a,"default_values",1); // return to the  default values of the model
                           // see sda() function
clf()
plot2d(sin(t),cos(t))
 ]]></programlisting>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="gdf">gdf</link>
            </member>
            <member>
                <link linkend="sda">sda</link>
            </member>
            <member>
                <link linkend="sdf">sdf</link>
            </member>
            <member>
                <link linkend="clf">clf</link>
            </member>
            <member>
                <link linkend="gca">gca</link>
            </member>
            <member>
                <link linkend="get">get</link>
            </member>
            <member>
                <link linkend="graphics_entities">graphics_entities</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
