Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.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 help >> Graphics > text > xstringb

xstringb

文字列をボックス内に描画

呼び出し手順

xstringb(x,y,str,w,h,[option])

引数

x,y,w,h

ボックスを定義する実数スカラーのベクトル.

str

文字列の行列.

Scilab 5.2以降,LaTeXまたはMathML式 を書くことができます.

option

文字列.

説明

xstringbはユーザ座標で rect=[x,y,w,h] (左下の点, 幅, 高さ)の矩形の中の中心に 文字列strの行列を描画します.

option"fill"が 指定された場合, 矩形の中をできるだけ埋めるように文字の大きさが計算されます.

コマンド xstringb() を入力するとデモを参照できます.

str=["Scilab" "is";"$\sqrt{not}$" "elisaB"]; // LaTeXレンダリング (>= Scilab 5.2)
plot2d(0,0,[-1,1],"010"," ",[0,0,1,1]);

r=[0,0,1,0.5];
xstringb(r(1),r(2),str,r(3),r(4),"fill");
xrect(r(1),r(2)+r(4),r(3),r(4));

r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
xrect(r(1),r(2)+r(4),r(3),r(4))
xstringb(r(1),r(2),str,r(3),r(4),"fill");

r=[r(1),r(2)+r(4)+0.01,r(3),r(4)/2];
xrect(r(1),r(2)+r(4),r(3),r(4))
xstringb(r(1),r(2),str,r(3),r(4),"fill");

参照

  • titlepage — グラフィックウインドウの中央にタイトルを追加する
  • xstring — 文字列を描画
  • xstringl — 文字列を囲うボックスを計算
  • xtitle — グラフィックスウインドにタイトルを追加する
Report an issue
<< xstring text xstringl >>

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:
Mon Oct 01 17:40:36 CEST 2012