plpgon

plot (filled) polygon

parametertypeunitsdescription
x,yfloat*uuarrays with datapoint coordinates in user units
nintnumber of datapoints
linetypeintline format used for outline (see plot)
returns:void

Description

plpgon plots a filled and outlined polygon.

Examples

plinit PS plpgon A4 50 50 "" ""

plrdx 4 0 10 10 0
plrdy 4 0 0 10 10
plpgon 4 DOWN 1

plmvorgm 10 10
plpgon 4 DOWN 0
plrdx 4 3 3 7 7
plrdy 4 3 7 7 3
plpgon 4 DOWN 1

plmvorgm 10 10
plrdx 4 0 10 10 0
plrdy 4 0 0 10 10
plpgon 4 DOWN 0
plrdx 4 3 7 7 3
plrdy 4 3 3 7 7
plpgon 4 DOWN 1

plpgon