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="xfpolys">
15 <refname>xfpolys</refname>
16 <refpurpose>一連のポリゴンを塗りつぶす </refpurpose>
20 <synopsis>xfpolys(xpols,ypols,[fill])</synopsis>
26 <term>xpols,ypols</term>
28 <para>同じ大きさ (p,n) (ポリゴンの点)の行列.</para>
34 <para>大きさ n または大きさ (p,n)のベクトル</para>
42 <literal>xfpolys</literal>は
43 行列<literal>xpols</literal> および<literal>ypols</literal>
44 で定義された同じ大きさの一連のポリゴンを塗りつぶします.
45 各ポリゴンの座標は<literal>xpols</literal> および <literal>ypols</literal>
48 <para>ポリゴンは指定した色で塗られるか(フラット),もしくは,
56 この場合, <literal>fill</literal>は
57 大きさ<literal>n</literal>のベクトルとなります.
59 <literal>fill(i)</literal>で指定されます:
64 <literal>fill(i)<0</literal>の場合, ポリゴンは
65 パターンID <literal>-fill(i)</literal>で塗られます.
70 <literal>fill(i)=0</literal>の場合, ポリゴンは
71 カレントの破線(またはカレントの色)で描画され,
77 <literal>fill(i)>0</literal>の場合,
78 ポリゴンはパターンID <literal>fill(i)</literal>で
79 塗られます. この後, 等高線がカレントの破線(または色)が描画され,
90 この場合,<literal>fill</literal> は,
91 <literal>xpols</literal> および <literal>ypols</literal>と
93 <literal>p</literal> は 3 または 4とします.
96 <literal>fill(k,i)</literal>はポリゴン<literal>i</literal>の
97 <literal>k</literal>番目の縁の色を指定します.
105 <programlisting role="example"><![CDATA[
107 a.data_bounds=[0,-10;210,40];
108 a.foreground=color('red');
109 x1=[0,10,20,30,20,10,0]';
110 y1=[15,30,30,15,0,0,15]';
112 xpols=xpols+[0,60,120,180].*.ones(x1);
114 xfpolys(xpols,ypols,[-1,0,1,2])
118 a.data_bounds=[0,-10;210,40];
119 a.foreground=color('red');
120 x1=[0,10,20,30,20,10,0]';
121 y1=[15,30,30,15,0,0,15]';
123 xpols=xpols+[0,60,120,180].*.ones(x1);
125 xfpolys(xpols,ypols,[-1,0,1,2])
128 <programlisting role="example"><![CDATA[
133 a.data_bounds=[0,-10;40,30];
137 c=linspace(2,100,4)';
138 xpols=[x1 x1+20 x1+10 x1+10];
139 ypols=[y1 y1 y1+10 y1-10];
140 cols= [c c($:-1:1) c([3 4 1 2]) c]
141 f.color_map=jetcolormap(max(cols));
142 xfpolys(xpols,ypols,cols)
147 a.data_bounds=[0,-10;40,30];
151 c=linspace(2,100,4)';
152 xpols=[x1 x1+20 x1+10 x1+10];
153 ypols=[y1 y1 y1+10 y1-10];
154 cols= [c c($:-1:1) c([3 4 1 2]) c]
155 f.color_map=jetcolormap(max(cols));
156 xfpolys(xpols,ypols,cols)
158 <programlisting role="example"><![CDATA[
181 X=[x11 x12 x21 x22 x31 x32];
182 Y=[y11 y12 y21 y22 y31 y32];
183 C=([c11 c12 c21 c22 c31 c32]+1)*5;
186 a.data_bounds=[min(X),min(Y);max(X),max(Y)];
188 f.color_map=graycolormap(max(C));
213 X=[x11 x12 x21 x22 x31 x32];
214 Y=[y11 y12 y21 y22 y31 y32];
215 C=([c11 c12 c21 c22 c31 c32]+1)*5;
218 a.data_bounds=[min(X),min(Y);max(X),max(Y)];
220 f.color_map=graycolormap(max(C));
225 <refsection role="see also">
227 <simplelist type="inline">
229 <link linkend="xfpoly">xfpoly</link>
232 <link linkend="xpoly">xpoly</link>
235 <link linkend="xpolys">xpolys</link>