<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
 * Copyright (C) ENPC - Jean-Philippe Chancelier
 *
 * 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="plot2d3">
    <refnamediv>
        <refname>plot2d3</refname>
        <refpurpose>2D plot (vertical
            bars)
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>plot2d3([logflags,] x,y,[style,strf,leg,rect,nax])
            plot232(y)
            plot2d3(x,y &lt;,opt_args&gt;)
        </synopsis>
    </refsynopsisdiv>
    <refsection role="parameters">
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>args</term>
                <listitem>
                    <para>
                        see <literal>plot2d</literal> for a description of parameters.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection role="description">
        <title>Description</title>
        <para>
            <literal>plot2d3</literal> is the same as <literal>plot2d</literal> but curves are
            plotted using vertical bars.
        </para>
        <para>By default, successive plots are superposed. To clear the previous
            plot, use <literal>clf()</literal>.
        </para>
        <para>
            Enter the command <literal>plot2d3()</literal> to see a demo.
        </para>
        <para>
            <note>
                Note that all
                the modes proposed by <literal>plot2dxx</literal> (xx = 1 to 4) can be enabled
                using <literal>plot2d</literal> and setting the <literal>polyline_style</literal>
                option to the corresponding number.
            </note>
        </para>
    </refsection>
    <refsection role="examples">
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
x = [0:0.1:2*%pi]';
plot2d3(x, [sin(x) sin(2*x) sin(3*x)])
 ]]></programlisting>
        <scilab:image>
            x = [0:0.1:2*%pi]';
            plot2d3(x, [sin(x) sin(2*x) sin(3*x)])
        </scilab:image>
        <programlisting role="example"><![CDATA[
clf()
x = [0:0.1:2*%pi]';
plot2d(x, [sin(x) sin(2*x) sin(3*x)])
e = gce();
e.children(1).polyline_style=3;
e.children(2).polyline_style=3;
e.children(3).polyline_style=3;
 ]]></programlisting>
        <scilab:image>
            x=[0:0.1:2*%pi]';
            plot2d(x,[sin(x) sin(2*x) sin(3*x)])
            e=gce();
            e.children(1).polyline_style=3;
            e.children(2).polyline_style=3;
            e.children(3).polyline_style=3;
        </scilab:image>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="plot2d">plot2d</link>
            </member>
            <member>
                <link linkend="plot2d2">plot2d2</link>
            </member>
            <member>
                <link linkend="plot2d4">plot2d4</link>
            </member>
            <member>
                <link linkend="clf">clf</link>
            </member>
            <member>
                <link linkend="polyline_properties">polyline_properties</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
