plot

move pen to new position in user units

parametertypeunitsdescription
x,yfloatuunew pen position
linetypeint--format of the line drawn
returns:void

Description

plot moves the pen to (x,y) in user units. The format of the line produced (if any) is determined by the linetype parameter:
DOWN
plot with the pen down, drawing a solid line with the current pen diameter (see plset)
UP
plot with the pen up, so nothing is plotted, the pen is only moved
DASH
plot a dashed line, alternately 2 dash units DOWN and 2 dash units UP
any
other value is used as a format to create a dashed line; see the section Dash

Dash format

The third argument of plot is interpreted as a 4-digit number, each digit representing the number of dash units by which the pen is alternately going up and down. Alternately, a leading 1 may be added to the 4-digit number, resulting in the dash unit to be set to 0.1 mm temporarily. The lengths over which the pen went up and down is remembered between successive calls of plot or any other routine producing dashed lines, thus allowing building up a dashed line from many small sections.

The dash unit, by default, is 1 millimeter, but this may changed with plset

See also

plotm, plotr, plotrm, plu, plum

Examples

plinit PS plot A4 50 160 "" ""
plset HEIGHT 3
plformat .5 .5 "Dashed line examples"
plmvorg 0 -10 pltext0 "DASHUNIT = 1 mm:" plotr 0 -6 UP
d=1111 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=2222 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=4444 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=8888 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=1212 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=2121 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=2424 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=4242 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
plset DASHUNIT .2
plmvorg 60 0
pltext0 "DASHUNIT = 0.2 mm:" plotr 0 -6 UP
d=1411 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=1141 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=1331 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=2282 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=2822 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=2662 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=1811 plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
d=0    plotr 40 0 d plformat .5 .5 %6.0f d plotr -40 -6 UP 
plframe 5 3

plot

See also

plfill pldot plclip plarcr plbox plformat plmvorg plframe plblock plfunc plpolc pltrace plaxes plarc plfont plreserv plaxfit plpolv plpoly plshade plarrow plrotate plpgon plhiss plhist plpline plloop plsmooth simplot program plpie plpolar plevent