~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/graphics/xrects.cat

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
xrects            Scilab Group            Scilab Function            xrects
2
 
NAME
3
 
   xrects - draw or fill a set of rectangles
4
 
  
5
 
CALLING SEQUENCE
6
 
 xrects(rects,[fill])
7
 
PARAMETERS
8
 
 rects   : matrix of size (4,n).
9
 
         
10
 
 fill    : vector of size n.
11
 
         
12
 
DESCRIPTION
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
16
 
  drawing rectangle i:
17
 
  
18
 
   if fill(i)<0, rectangle i is drawn using the line style (or color)
19
 
  -fill(i)
20
 
  
21
 
   if fill(i)>0, rectangle i is filled using the pattern (or color) fill(n)
22
 
  
23
 
   if fill(i)=0, rectangle i is drawn using the current line style (or
24
 
  color).
25
 
  
26
 
EXAMPLE
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)];
31
 
 xrects(rects,cols)
32
 
 xnumb(x,15*ones(x),cols)
33
 
SEE ALSO
34
 
   xfrect, xrect
35
 
  
36
 
AUTHOR
37
 
   J.Ph.C.
38