1 <?xml version="1.0" encoding="UTF-8"?>
5 * Copyright (C) INRIA - Serge Steer Serge.Steer@inria.fr
10 * Copyright (C) 2012 - 2016 - Scilab Enterprises
12 * This file is hereby licensed under the terms of the GNU GPL v2.0,
13 * pursuant to article 5.3.4 of the CeCILL v.2.1.
14 * This file was originally licensed under the terms of the CeCILL v2.1,
15 * and continues to be available under such terms.
16 * For more information, see the COPYING file which you should have received
17 * along with this program.
21 <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="datatips">
25 <refname>datatips</refname>
27 <refpurpose>プロットされた曲線に情報(tips)を配置,編集するためのツール.</refpurpose>
37 このツールにより,曲線(ポリライン)上に情報を配置,移動,修正することが
39 できます.これはプログラムまたは対話的に行うことができます.
47 datatipsモードは <link linkend="datatipManagerMode">datatipManagerMode()</link> または
49 <literal>Edit/Start datatip manager</literal> または指定するグラフィックウインドウの
57 <imagedata fileref="../../../../gui/images/icons/16x16/apps/datatips.png"/>
63 をクリックすることにより有効にすることができます.
67 <para>一度有効になると,曲線を左クリックするだけで,
69 情報(カレントの点に関する情報を有する小さな箱)が曲線の最も近いdatapointに
73 デフォルトで各曲線は1つの情報を有することができますが,
75 右クリックコンテキストメニューにより複数のdatatipsを使用することが
83 情報を移動するには,曲線の小さな正方形の記号の上で左ボタンを押し,
91 情報記号の上で右クリックするとコンテキストダイアログがオープンします.
93 このダイアログにより関連する曲線の全ての datatips に表示される専用の情報を
101 情報記号の上で真ん中のボタンをクリックすると,
103 選択された情報の向きを管理することができるコンテキスト依存のダイアログが
115 <programlisting role="example"><![CDATA[
117 // この例はプログラムで情報を管理する手法を示します
119 x1=linspace(0,1,100)';
125 plot(x1,y1,x1,sinc(10*x1));
129 p1=e.children(1);//sinc(10*x1)
131 p2=e.children(2); //x1^3
133 t=datatipCreate(p1,50);
135 datatipSetOrientation(t,"lower right")
137 t=datatipCreate(p1,[0.8 0.5]);
139 t=datatipCreate(p2,[0.1,0.0]);
141 t=datatipCreate(p2,[0.8 0.4]);
143 datatipSetOrientation(t,"upper left")
147 function str=myfmt(h)
151 str = msprintf('sinc\n%s', sci2exp(round(pt*10)/10))
155 datatipSetDisplay(t,"myfmt")
163 // this examples show how to manage tips by program
165 x1=linspace(0,1,100)';
171 plot(x1,y1,x1,sinc(10*x1));
175 p1=e.children(1);//sinc(10*x1)
177 p2=e.children(2); //x1^3
179 t=datatipCreate(p1,50);
181 datatipSetOrientation(t,"lower right")
183 t=datatipCreate(p1,[0.8 0.5]);
185 t=datatipCreate(p2,[0.1,0.0]);
187 t=datatipCreate(p2,[0.8 0.4]);
189 datatipSetOrientation(t,"upper left")
193 function str=myfmt(h)
197 str = msprintf('sinc\n%s', sci2exp(round(pt*10)/10))
201 datatipSetDisplay(t,"myfmt")
205 <programlisting role="example"><![CDATA[
209 x1=linspace(0,1.5,100)';
215 param3d(x1.*cos(10*x1),x1.*sin(10*x1),x1);
217 ax=gca();ax.box='off';
219 ax.rotation_angles=[76 31];
223 t=datatipCreate(p,50);
225 datatipSetOrientation(t,"lower right")
227 datatipCreate(p,[0,-1.10,1.10]);
233 x1=linspace(0,1.5,100)';
237 param3d(x1.*cos(10*x1),x1.*sin(10*x1),x1);
239 ax=gca();ax.box='off';
241 ax.rotation_angles=[76 31];
245 t=datatipCreate(p,50);
247 datatipSetOrientation(t,"lower right")
249 datatipCreate(p,[0,-1.10,1.10]);
255 <refsection role="see also">
259 <simplelist type="inline">
263 <link linkend="datatipToggle">datatipManagerMode</link>
269 <link linkend="datatipCreate">datatipCreate</link>
275 <link linkend="datatipMove">datatipMove</link>
281 <link linkend="datatipSetDisplay">datatipSetDisplay</link>