plclip

set clipping rectangle in user units

parametertypeunitsdescription
x1,y1floatuuposition of one corner of the clipping rectangle
x2,y2floatuuposition of the opposite corner
returns:void

Description

plclip sets the clipping rectangle in user units.

Examples

The following example draws a rectangle, sets clipping to this rectangle and then plots two long strings, one in the center of the rectangle and one centered on the bottom line.

See also

plclipm plunclip
plinit PS plclip 60 60 15 15 "" "" 
plset HEIGHT 3
plrect 0 0 30 30 plclip 0 0 30 30
plu 15 15 plformat 0 0 "STRING CENTERED IN THE CLIPPING RECTANGLE"
plu 15 0  plformat 0 0 "STRING CENTERED ON THE BOTTOM LINE OF THE CLIPPING RECTANGLE"

plclip

See also

plpoly plreserv plloop pltrace plpolv