<?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="fplot3d1">
    <refnamediv>
        <refname>fplot3d1</refname>
        <refpurpose>3D gray or color level plot of a surface
            defined by a function
        </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>fplot3d1(xr,yr,f,[theta,alpha,leg,flag,ebox])
            fplot3d1(xr,yr,f,&lt;opt_args&gt;)
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>xr</term>
                <listitem>
                    <para>row vector of size n1.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>yr</term>
                <listitem>
                    <para>row vector of size n2.</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>f</term>
                <listitem>
                    <para>external of type z=f(x,y).</para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>theta,alpha,leg,flag,ebox</term>
                <listitem>
                    <para>
                        see <literal>plot3d1</literal>.
                    </para>
                </listitem>
            </varlistentry>
            <varlistentry>
                <term>&lt;opt_args&gt;</term>
                <listitem>
                    <para>
                        see <literal>plot3d</literal>.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            <literal>fplot3d1</literal> plots a 3D gray or color level plot of a surface
            defined by the external function <literal>f</literal> on the grid defined by
            <literal>xr</literal> and <literal>yr</literal>.
        </para>
        <para>
            Enter the command <literal>fplot3d1()</literal> to see a demo.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
deff('z=f(x,y)','z=x^4-y^4')
x=-3:0.2:3 ;y=x ;
clf() ;fplot3d1(x,y,f,alpha=5,theta=31)
 ]]></programlisting>
        <scilab:image>
            deff('z=f(x,y)','z=x^4-y^4')
            x=-3:0.2:3 ;y=x ;
            clf() ;fplot3d1(x,y,f,alpha=5,theta=31)
        </scilab:image>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="plot3d1">plot3d1</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
