<?xml version="1.0" encoding="UTF-8"?>
<!--
 * Copyright (C) INRIA -  Serge Steer Serge.Steer@inria.fr
 *
 * 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_US" xml:id="datatipSetInterp">
    <refnamediv>
        <refname>datatipSetInterp</refname>
        <refpurpose>Set the interpolation mode for datatip. </refpurpose>
    </refnamediv>
    <refsynopsisdiv>
        <title>Syntax</title>
        <synopsis>
            datatipSetInterp(datatip_handle,interp_mode)
        </synopsis>
    </refsynopsisdiv>
    <refsection>
        <title>Arguments</title>
        <variablelist>
            <varlistentry>
                <term>datatip_handle</term>
                <listitem>
                    <para>
                        A handle of the tip.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
        <variablelist>
            <varlistentry>
                <term>interp_mode</term>
                <listitem>
                    <para>
                        A boolean, if false the tips can only be located at the
                        mesh points, if true interpolation is made between mesh
                        points. The default value is true.
                    </para>
                </listitem>
            </varlistentry>
        </variablelist>
    </refsection>
    <refsection>
        <title>Description</title>
        <para>
            Set the interpolation mode for tip location.
        </para>
    </refsection>
    <refsection>
        <title>Examples</title>
        <programlisting role="example"><![CDATA[
    x=linspace(0,1,8)';
    y=x.^3;
    clf()
    plot(x,y);
    e=gce();p=e.children(1);//get the handle on the polyline
    p.mark_mode="on";p.mark_style=2;p.mark_size=5;
    t=datatipCreate(p,[0.8,0.512]);
    datatipSetInterp(t,%f);//now move the datatip
    ]]></programlisting>
        <scilab:image>
            x=linspace(0,1,8)';
            y=x.^3;
            plot(x,y);
            e=gce();p=e.children(1);//get the handle on the polyline
            p.mark_mode="on";p.mark_style=2;p.mark_size=5;
            t=datatipCreate(p,[0.8,0.512]);
            datatipSetInterp(t,%f);//now move the datatip
        </scilab:image>
    </refsection>
    <refsection role="see also">
        <title>See also</title>
        <simplelist type="inline">
            <member>
                <link linkend="datatips">datatips</link>
            </member>
            <member>
                <link linkend="datatipMove">datatipMove</link>
            </member>
        </simplelist>
    </refsection>
</refentry>
