Scilab 6.0.0
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
xrects
一連の矩形を描画または塗りつぶす
呼び出し手順
xrects(rects,[fill])
引数
- rects
大きさ (4,n)の行列.
- fill
大きさ nのベクトル.
説明
xrects
は一連の矩形を描画または塗りつぶします.
rects
の各列は矩形(左上の点,幅,高さ)をユーザ座標で記述します:
rects=[x1 x2... ; y1 y2... ; w1 w2... ; h1 h2...]
.
fill(i)
は矩形iを塗りつぶしまたは描画する際に使用される
パターンを指定します:
fill(i)<0
の場合, 矩形 i
は
線種(または色)-fill(i)
により描画されます
fill(i)>0
の場合, 矩形i
は
パターン(または色)fill(i)
により塗りつぶされます.
fill(i)=0
の場合, 矩形i
はカレントの
線種(または色)で描画されます.
警告: 高さは下向きが正です.
例
plot2d([-100,500],[-50,50],[-1,-1],"022") cols=[-34,-33,-32,-20:5:20,32,33,34]; x=400*(0:14)/14; step=20; rects=[x;10*ones(x);step*ones(x);30*ones(x)]; xrects(rects,cols) xnumb(x,15*ones(x),cols)

Report an issue | ||
<< xrect | geometric_shapes | handle >> |