Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - 日本語

Change language to:
English - Français - Português

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab manual >> Graphics Library > Datatips > datatipSetDisplay

datatipSetDisplay

指定した点に最も近いdatatipを探索する.

呼び出し手順

datatipSetDisplay(tip_handle,orient)

パラメータ

tip_handle

datatipのハンドル.

orient

文字列で,次の値を指定可能り: "automatic" "upper left" "upper right", "lower left", "lower right".

説明

曲線の点に関するテキストボックスの相対位置を設定します. 向きに"automatic"を指定すると, プログラムはテキストボックスをプロットの範囲内に収めるように 選択を行ないます.

x=linspace(-1,1,1000);
clf()
plot(x,sinc(20*x),x,1-x^2);
e=gce();e=e.children;
d21=datatipCreate(e(2),600);
d22=datatipCreate(e(2),200);
d1=datatipCreate(e(1),700);

function str=mydisplay(curve, pt, index)
   str=msprintf('sinc(%-0.2g)=%-0.2g', 20*pt(1),pt(2))
endfunction
datatipSetDisplay(e(2),mydisplay)

作者

  • Serge Steer, INRIA
<< datatipRemoveAll Datatips datatipSetInterp >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jan 26 16:25:13 CET 2011