<?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="ja" xml:id="xrects">

    <refnamediv>

        <refname>xrects</refname>

        <refpurpose>一連の矩形を描画または塗りつぶす</refpurpose>

    </refnamediv>

    <refsynopsisdiv>

        <title>呼び出し手順</title>

        <synopsis>xrects(rects,[fill])</synopsis>

    </refsynopsisdiv>

    <refsection>

        <title>引数</title>

        <variablelist>

            <varlistentry>

                <term>rects</term>

                <listitem>

                    <para>大きさ (4,n)の行列.</para>

                </listitem>

            </varlistentry>

            <varlistentry>

                <term>fill</term>

                <listitem>

                    <para>大きさ nのベクトル.</para>

                </listitem>

            </varlistentry>

        </variablelist>

    </refsection>

    <refsection>

        <title>説明</title>

        <para>

            <literal>xrects</literal>は一連の矩形を描画または塗りつぶします.

            <literal>rects</literal>の各列は矩形(左上の点,幅,高さ)をユーザ座標で記述します:

            <literal>rects=[x1 x2... ; y1 y2... ; w1 w2... ; h1 h2...]</literal>.

        </para>

        <para>

            <literal>fill(i)</literal> は矩形iを塗りつぶしまたは描画する際に使用される

            パターンを指定します:

        </para>

        <para>

            <literal>fill(i)&lt;0</literal>の場合, 矩形 <literal>i</literal> は

            線種(または色)<literal>-fill(i)</literal>により描画されます

        </para>

        <para>

            <literal>fill(i)&gt;0</literal>の場合, 矩形<literal>i</literal> は

            パターン(または色)<literal>fill(i)</literal>により塗りつぶされます.

        </para>

        <para>

            <literal>fill(i)=0</literal>の場合, 矩形<literal>i</literal>はカレントの

            線種(または色)で描画されます.

        </para>

        <para>警告: 高さは下向きが正です.</para>

    </refsection>

    <refsection>

        <title>例</title>

        <programlisting role="example"><![CDATA[

plot2d([-100,500],[-50,50],[-1,-1],"022")

cols=[-34,-33,-32,-20:5:20,32,33,34];

x=400*(0:14)/14; step=20;

rects=[x;10*ones(x);step*ones(x);30*ones(x)];

xrects(rects,cols)

xnumb(x,15*ones(x),cols)

 ]]></programlisting>

        <scilab:image>

            plot2d([-100,500],[-50,50],[-1,-1],"022")

            cols=[-34,-33,-32,-20:5:20,32,33,34];

            x=400*(0:14)/14; step=20;

            rects=[x;10*ones(x);step*ones(x);30*ones(x)];

            xrects(rects,cols)

            xnumb(x,15*ones(x),cols)

        </scilab:image>

    </refsection>

    <refsection role="see also">

        <title>参照</title>

        <simplelist type="inline">

            <member>

                <link linkend="xfrect">xfrect</link>

            </member>

            <member>

                <link linkend="xrect">xrect</link>

            </member>

        </simplelist>

    </refsection>

</refentry>

