plinit

initialize the system

parametertypeunitsdescription
driverint--plotter driver, currently PS, PSL, PDF, PDFL or X
filechar*--plotfile name, stdout if empty, not used when driver is X
xsize,ysizefloatmmpaper size
xorg,yorgfloatmmposition of the origin relative to lower left of the paper
initial_fontchar*--initial font name
alternate_fontchar*--alternate font name
returns:void

Description

plinit (re)initializes plot package. It chooses a new plotter driver. Currently three drivers are available:
PS
portrait oriented PostScript
PSL
landscape oriented PostScript
PDF
portrait oriented PDF
PDFL
landscape oriented PDF
X
for plotting on the screen (X-windows or VGA).
plinit resets all internal variables, including the origin and scaling. Scaling is reset to millimeter units in both x- and y-direction, and the origin is reset to xorg,yorg millimeters relative to the lower left corner of the paper. The parameter file is a name for the plotfile. It is not used when plotting in X-windows; otherwise, if it is empty then the PostScript output will be sent to standard output and if it is non-empty, then the plotfile will be file.eps. The pair width,height determines the paper/screen sizes in mm; it may also be replaced by one of the following macros:
A0841x1189
A1594x841
A2420x594
A3297x420
A4210x297
A5146x210
A6105x146
A774x105
Using PSL or PDFL for the plotter driver automatically exchanges paper width and height. Thus A4 is the normal papersize, both for PS and for PSL. For PostScript plotting, the papersize given should be the actual papersize of the plotter. It may be tempting to use other papersizes instead, for example to influence the behaviour of plreserv. However, plclip should be used for such purposes. The two font parameters make two fonts available, the initial font and an alternate font. The latter becomes effective if either plfont is called or, in plformat, a @--character is found in the format string. Available Postscript fonts have names constructed from the capital letters of their standard Postscript names. Their geometries are found in files with those names in the directory /simplot/fonts. Currently available fonts are:
AGBAvantGarde-BookHNOHelvetica-Narrow-Oblique
AGBOAvantGarde-BookObliqueHOHelvetica-Oblique
AGDAvantGarde-DemiNCSBNewCenturySchlbk-Bold
AGDOAvantGarde-DemiObliqueNCSBINewCenturySchlbk-BoldItalic
BDBookman-DemiNCSINewCenturySchlbk-Italic
BDIBookman-DemiItalicNCSRNewCenturySchlbk-Roman
BLBookman-LightPBPalatino-Bold
BLIBookman-LightItalicPBIPalatino-BoldItalic
CCourierPIPalatino-Italic
CBCourier-BoldPRPalatino-Roman
CBOCourier-BoldObliqueSSymbol
COCourier-ObliqueTBTimes-Bold
HHelveticaTBITimes-BoldItalic
HBHelvetica-BoldTITimes-Italic
HNHelvetica-NarrowTRTimes-Roman
HNBHelvetica-Narrow-BoldZCMIZapfChancery-MediumItalic
HNBOHelvetica-Narrow-BoldObliqueZDZapfDingbats
If an empty string is given, Helvetica ("H") is used for the initial_font and Symbol ("S") for the alternate_font For plotting under X-windows, any available X-font definition string may be given. Default values are

"-*-helvetica-medium-r-*-*-10-*-*-*-*-*-*-*"

for the initial_font and

"-*-symbol-medium-r-*-*-10-*-*-*-*-*-*-*"

for the alternate_font

Examples

See also

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