xclip(2)

NAME
xclip - set a clip zone

CALLING SEQUENCE
xclip([x,y,w,h])
xclip(rect)

PARAMETERS

x,y,w,h
    : four float values

rect
    : a vector of size (1,4)

DESCRIPTION
Sets a clip region given by the coordinates, in the current graphic scaling, of a rectangle (x,y,w,h) (Upper-Left point,Width abd Height). If only one argument is used it stands for a rectangle specification rect=[x,y,w,h];

To unclip a region use the command xclip()

EXAMPLE
plot2d([-100,500],[-100,600],[-1,-1],"022");
xset("default");
xrect(150,460,100,150);
xclip(150,460,100,150);
x=0:0.2:2*%pi;
x1=[sin(x);10*sin(x)];
y1=[cos(x);10*cos(x)];
y1=y1+20*ones(y1);
// drawing inside the clip zone
xsegs(10*x1+200*ones(x1),10*y1+200*ones(y1));
xclip()

AUTHOR
J.Ph.C.