<< show_pixmap Graphics twinkle >>

Scilab help >> Graphics > square

square

等軸プロットのスケールを設定 (ウインドウの大きさを変更)

呼び出し手順

square(xmin,ymin,xmax,ymax)

パラメータ

xmin,xmax,ymin,ymax

実数値

説明

squareは, xおよびy軸に等軸スケールを適用する際に 使用されます. 指定された値 xmin, xmax, ymin, ymax は グラフィックフレームの境界で, square は 等軸プロットとなるようにグラフィックウインドウの次元を変更します. square はカレントのグラフィックスケールを設定し, カレントのグラフィックスケールを指定する グラフィックルーチン (例えば, plot2dのfstrf="x0z") と組み合わせて使用することができます.

例

t=[0:0.1:2*%pi]';
plot2d(sin(t),cos(t))
clf()
square(-1,-1,1,1)
plot2d(sin(t),cos(t))
xset("default")

参照

作者

Steer S.

<< show_pixmap Graphics twinkle >>