1 <?xml version="1.0" encoding="UTF-8"?>
3 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4 * Copyright (C) ENPC - Jean-Philippe Chancelier
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
13 <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="xpoly">
15 <refname>xpoly</refname>
16 <refpurpose>ポリラインまたはポリゴンを描画する</refpurpose>
20 <synopsis>xpoly(xv,yv [,dtype [,close]])</synopsis>
28 <para>同じ大きさの行列 (ポリラインの点).</para>
34 <para>文字列 (描画形式). デフォルト値は "lines".</para>
40 <para>整数. close=1の場合, ポリラインは閉じられます; デフォルト値は
50 <literal>xpoly</literal> は座標<literal>xv</literal> および<literal>yv</literal>の
51 ベクトルにより記述されるポリラインを1つ描画します.
52 <literal>xv</literal> および
53 <literal>yv</literal> が行列の場合, これらは列を結合したベクトルとみなされます.
54 <literal>dtype</literal> はカレントの線種を用いる場合には
55 <literal>"lines"</literal>,ポリラインを描画する際に
56 カレントのマーカを使用する場合には<literal>"marks"</literal>となります.
61 <programlisting role="example"><![CDATA[
65 plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
67 xpoly(x,y,"lines",1) // デフォルトで閉じられます
69 e=gce(); // カレントのエンティティを取得 (直近に作成: ここではポリライン)
70 e.closed = 'off' // ポリラインはオープンされます
76 plot2d(0,0,-1,"010"," ",[-2,-2,2,2])
85 <refsection role="see also">
87 <simplelist type="inline">
89 <link linkend="xfpoly">xfpoly</link>
92 <link linkend="xfpolys">xfpolys</link>
95 <link linkend="xpolys">xpolys</link>