e06e24afc802fed6846763d0bc0fe36b444daa85
[scilab.git] / scilab / modules / graphics / help / ja_JP / axes_operations / subplot.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA
5  * Copyright (C) 2012 - 2016 - Scilab Enterprises
6  * Copyright (C) 2019 - Samuel GOUGEON
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"
17           xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML"
18           xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org"
19           xml:lang="ja" xml:id="subplot">
20     <refnamediv>
21         <refname>subplot</refname>
22         <refpurpose>グラフィックウインドウをサブウインドウの行列に分割する</refpurpose>
23     </refnamediv>
24     <refsynopsisdiv>
25         <title>呼び出し手順</title>
26         <synopsis>
27             subplot(m,n,p)
28             subplot(mnp)
29         </synopsis>
30     </refsynopsisdiv>
31     <refsection>
32         <title>引数</title>
33         <variablelist>
34             <varlistentry>
35                 <term>m, n, p</term>
36                 <listitem>
37                     <para>正の整数</para>
38                 </listitem>
39             </varlistentry>
40             <varlistentry>
41                 <term>mnp</term>
42                 <listitem>
43                     <para>
44                         10進表記の整数 <literal>mnp</literal>
45                     </para>
46                 </listitem>
47             </varlistentry>
48         </variablelist>
49     </refsection>
50     <refsection>
51         <title>説明</title>
52         <para>
53             subplot(m,n,p) または subplot(mnp) はグラフィックウインドウを
54             m行n列のサブウインドウの行列に分割し,
55             p番目のサブウインドウを描画先として選択します.
56             サブウインドウの番号は,行優先でカウント,つまり,
57             行列の要素(i,j)に対応するサブウインドウは(i-1)*n + j番となります.
58         </para>
59         <para>
60             When the selected area matches exactly an existing axes, <literal>subplot(…)</literal>
61             just sets it as the current axes, and returns.
62         </para>
63         <para>
64             Otherwise, <literal>subplot(…)</literal> creates an empty axes covering the selected area,
65             ready to receive forthcoming plotting contents.
66         </para>
67     </refsection>
68     <refsection>
69         <title>例</title>
70         <programlisting role="example"><![CDATA[
71             clf
72             subplot(221)
73             plot2d()
74
75             subplot(222)
76             plot3d()
77
78             subplot(2,2,3)
79             param3d()
80
81             subplot(2,2,4)
82             hist3d()
83  ]]></programlisting>
84         <scilab:image>
85             subplot(221)
86             plot2d()
87             subplot(222)
88             plot3d()
89             subplot(2,2,3)
90             param3d()
91             subplot(2,2,4)
92             hist3d()
93         </scilab:image>
94         <para/>
95         <para>
96             <emphasis role="bold">A more complex layout</emphasis>, but still gridable:
97         </para>
98         <programlisting role="example"><![CDATA[
99             clf
100             subplot(1,2,2)
101             Matplot1()
102             xtitle("Matplot1() example","","")
103
104             subplot(2,2,1)
105             histplot
106             delete(findobj("type","Legend"))
107
108             subplot(2,2,3)
109             title("Smaller plots:", "fontsize",3)
110
111             subplot(2,4,5)
112             polarplot()
113
114             subplot(2,4,6)
115             param3d()
116             xtitle("","","","")
117  ]]></programlisting>
118         <scilab:image>
119             clf
120             subplot(1,2,2)
121             Matplot1()
122             xtitle("Matplot1() example","","")
123
124             subplot(2,2,1)
125             histplot
126             delete(findobj("type","Legend"))
127
128             subplot(2,2,3)
129             title("Smaller plots:", "fontsize",3)
130
131             subplot(2,4,5)
132             polarplot()
133
134             subplot(2,4,6)
135             param3d()
136             xtitle("","","","")
137             gcf().axes_size = [670 400];
138         </scilab:image>
139     </refsection>
140     <refsection role="see also">
141         <title>参照</title>
142         <simplelist type="inline">
143             <member>
144                 <link linkend="xsetech">xsetech</link>
145             </member>
146             <member>
147                 <link linkend="newaxes">newaxes</link>
148             </member>
149             <member>
150                 <link linkend="axes_properties">axes_properties</link>
151             </member>
152             <member>
153                 <link linkend="plotframe">plotframe</link>
154             </member>
155         </simplelist>
156     </refsection>
157 </refentry>