plclip
set clipping rectangle in user units
parameter | type | units | description |
---|---|---|---|
x1,y1 | float | uu | position of one corner of the clipping rectangle |
x2,y2 | float | uu | position 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 plunclipplinit 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"