1
.TH xrects 2 "April 1993" "Scilab Group" "Scilab Function"
4
xrects - draw or fill a set of rectangles
12
: matrix of size (4,n).
17
\fVxrects\fR draws or fills a set of rectangles.
18
Each column of \fVrects\fR describes
19
a rectangle (upper-left point, width, height):
20
\fVrects=[x1 y1 w1 h1;x2 y2 w2 h2;...]'\fR.
22
\fVfill(i)\fR gives the pattern to use for filling or drawing rectangle i:
24
if \fVfill(i)<0\fR, rectangle \fVi\fR is drawn using the line style (or
27
if \fVfill(i)>0\fR, rectangle \fVi\fR is filled using the pattern (or
30
if \fVfill(i)=0\fR, rectangle \fVi\fR is drawn using the current
31
line style (or color).
34
plot2d([-100,500],[-50,50],[-1,-1],"022")
35
cols=[-34,-33,-32,-20:5:20,32,33,34];
36
x=400*(0:14)/14; step=20;
37
rects=[x;10*ones(x);step*ones(x);30*ones(x)];
39
xnumb(x,15*ones(x),cols)