~ubuntu-branches/ubuntu/karmic/scilab/karmic

« back to all changes in this revision

Viewing changes to man/graphics/xrects.man

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2002-03-21 16:57:43 UTC
  • Revision ID: james.westby@ubuntu.com-20020321165743-e9mv12c1tb1plztg
Tags: upstream-2.6
ImportĀ upstreamĀ versionĀ 2.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH xrects 2 "April 1993" "Scilab Group" "Scilab Function"
 
2
.so ../sci.an
 
3
.SH NAME
 
4
xrects - draw or fill a set of rectangles
 
5
.SH CALLING SEQUENCE
 
6
.nf
 
7
xrects(rects,[fill])
 
8
.fi
 
9
.SH PARAMETERS 
 
10
.TP 7
 
11
rects 
 
12
: matrix of size (4,n).
 
13
.TP
 
14
fill
 
15
: vector of size n.
 
16
.SH DESCRIPTION
 
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.
 
21
 
 
22
\fVfill(i)\fR gives the pattern to use for filling or drawing rectangle i:
 
23
.LP
 
24
if \fVfill(i)<0\fR, rectangle \fVi\fR is drawn using the line style (or
 
25
color) \fV-fill(i)\fR
 
26
.LP
 
27
if \fVfill(i)>0\fR, rectangle \fVi\fR is filled using the pattern (or
 
28
color) \fVfill(n)\fR
 
29
.LP
 
30
if \fVfill(i)=0\fR, rectangle \fVi\fR is drawn using the current
 
31
line style (or color).
 
32
.SH EXAMPLE
 
33
.nf
 
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)];
 
38
xrects(rects,cols)
 
39
xnumb(x,15*ones(x),cols)
 
40
.fi 
 
41
.SH SEE ALSO
 
42
xfrect, xrect
 
43
.SH AUTHOR
 
44
J.Ph.C.