File: xclip.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (45 lines) | stat: -rw-r--r-- 1,240 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
xclip            Scilab Group            Scilab Function              xclip
NAME
   xclip - set a clipping zone 
  
CALLING SEQUENCE
 xclip([x,y,w,h])
 xclip(rect)
 xclip("clipgrf")
PARAMETERS
 x,y,w,h   : real values.
           
 rect      : row vector of size 4.
           
DESCRIPTION
   xclip set a clipping zone given by the coordinates, in the current
  graphics scale, of the rectangle x,y,w,h  (upper-left point, width,
  height). If only one argument is given, it stands for a rectangle
  specification rect=[x,y,w,h].
  
   xclip("clipgrf") is used to clip the usual rectangle boundaries.
  
   To unclip a region use the command xclip().
  
EXAMPLE
 x=0:0.2:2*%pi;
 x1=[sin(x);100*sin(x)];
 y1=[cos(x);100*cos(x)];
 y1=y1+20*ones(y1);
 // No clip 
 plot2d([-100,500],[-100,600],[-1,-1],"022")
 xsegs(10*x1+200*ones(x1),10*y1+200*ones(y1))
 // rectangle clipping zone 
 xbasc(); plot2d([-100,500],[-100,600],[-1,-1],"022")
 xrect(150,460,100,150)
 xclip(150,460,100,150)
 xsegs(10*x1+200*ones(x1),10*y1+200*ones(y1))
 // usual rectangle boundaries clipping zone 
 xbasc(); plot2d([-100,500],[-100,600],[-1,-1],"022")
 xclip("clipgrf")
 xsegs(10*x1+200*ones(x1),10*y1+200*ones(y1));
 // clipping of
 xclip()
AUTHOR
   J.Ph.C.