PLOTFILE(3ICD)

NAME
plotfile - file for plotting

DESCRIPTION
Plotfile is created by preplot and is used by the plot programs. You can create your own plotfile if you know the correct plotfile format.
Plotfile Format:
================
The plotfile format is as follows:
	||
	|	|	plotname
	|   header	|	min  xl  yb
	|	|	max  xr  yt
	||	[options]
	|	|
	|   plot	|	lay lc pen#
	| statements	|	other plot statements
	|	|
	||
Options:
========
The special instructions which may be specified in the header
(before the first 'lay' specification) are:
	*lLAMBDA	set lambda scale (floating point, d.p.)
	*oF0	leave margins for axis & scale info
	*oF1	use full paper size (no axis ...)
	*oa0	disable plotting of axis
	*oa1	enable plotting of axis
	*oe0	disable edge around plot
	*oe1	enable edge around plot
	*ol0	disable display of lay-codes
	*ol1	enable display of lay-codes
	*on0	disable display of cell-name
	*on1	enable display of cell-name
	*os0	disable display of scale info
	*os1	enable display of scale info
	*rRESOL	set unit-resolution (integer)
Plot Statements:
================
layer statement:
lay layercode pen#
	layercode	layer identification string
	pen#	plotter pen (color) to be used
move statement:
m ix iy
	ix,iy	absolute position (in uu) to move to
draw statement:
d ix iy
	ix,iy	absolute position (in uu) to draw to
set text statement:
s cw ch [rot@] [slant@]
	cw	character width of text (in plotunits)
	ch	character height of text (in plotunits)
	rot@	rotation angle (default: 0 degrees)
	slant@	slant angle (default: 90 degrees)
	16 plotunits = 1 mm
text statement:
t ix iy textstring
	ix,iy	absolute start position (in uu) of text
	textstring	text string
rectangle statement:
r ix iy dx dy
x dx dy
	ix,iy	absolute start position (in uu)
	dx	horizontal offset (relative to ix) to next point
	dy	vertical offset (relative to iy) to next point
		(first dx and then dy)
	the x statement is a continuation and
	may be present zero or more times
Example:
					/ 23, 47
			|-|
	r3 39 10 -8		|		|
	x20 8		|		|
			||	|
		3, 39	/	|	|
				|	|
				||
			13, 31	/
	Note: Blank after statement letter may be left out.
circle statement:
c rad [a_st [a_ro [pen]]]
	rad	radius of circle
		if > 0 : current position is starting point
		if < 0 : current position is centre of circle
	a_st	starting angle of circle, in degrees
		(positive == counterclockwise)
	a_ro	angle over which arc rotates
		if == 0 : full circle
	pen	pen-control, has meaning only if rad < 0
		if == 1 : draw vector from centre to arc
			starting point
		if == 0 : do not draw vector
	Note:	Any parameter not specified defaults to 0,
		only the radius must be present.
polygon statement:
p ixs1 iys1	start of polygon
x ix iy	second point, coord's relative to ixs1, iys1
  .	rest of the points
  .
  .
p ixs2 iys2	start of second polygon
x ix iy
  .
  .
  .
? ...	any instruction other than "p"
shading statement:
/ [dist [angle]]
	enable/disable shading of polygons
	dist	shading distance, may not be negative
		dist  > 0 : enable shading
		dist == 0 : disable shading
		if not specified and shading was already enabled,
		it signifies the start of a new group of polygons
	angle	angle of shading lines
		if not specified, angle of last '/' instr. is used
		if angle was never specified in any '/' instr.,
		a default of 0 is used (-> horizontal)
	Note:	Shading will not cross layer boundaries,
		starting a new layer will disable shading.

AUTHOR
S. de Graaf

SEE ALSO
preplot(1ICD), hplot(1ICD).