1
xrects Scilab Group Scilab Function xrects
3
xrects - draw or fill a set of rectangles
8
rects : matrix of size (4,n).
10
fill : vector of size n.
13
xrects draws or fills a set of rectangles. Each column of rects
14
describes a rectangle (upper-left point, width, height): rects=[x1 y1 w1
15
h1;x2 y2 w2 h2;...]'. fill(i) gives the pattern to use for filling or
18
if fill(i)<0, rectangle i is drawn using the line style (or color)
21
if fill(i)>0, rectangle i is filled using the pattern (or color) fill(n)
23
if fill(i)=0, rectangle i is drawn using the current line style (or
27
plot2d([-100,500],[-50,50],[-1,-1],"022")
28
cols=[-34,-33,-32,-20:5:20,32,33,34];
29
x=400*(0:14)/14; step=20;
30
rects=[x;10*ones(x);step*ones(x);30*ones(x)];
32
xnumb(x,15*ones(x),cols)