home *** CD-ROM | disk | FTP | other *** search
- %ident "@(#)////usr/lib/lp/postscript/postplot.ps.sl 1.1 4.0 12/08/90 25137 AT&T-USL"
- %
- % Version 3.15 prologue for Unix plot files - System V version.
- %
-
- /#copies 1 store
- /aspectratio 1 def
- /font /Courier def
- /formsperpage 1 def
- /landscape false def
- /linewidth 0 def
- /magnification 1 def
- /margin 10 def
- /orientation 0 def
- /screenheight 4096 def
- /screenwidth 4096 def
- /size 10 def
- /xoffset 0 def
- /yoffset 0 def
- /xtextshift 0 def
- /ytextshift 0 def
-
- /useclippath true def
- /pagebbox [0 0 612 792] def
-
- /inch {72 mul} bind def
- /min {2 copy gt {exch} if pop} bind def
-
- /setup {
- counttomark 2 idiv {def} repeat pop
-
- landscape {/orientation 90 orientation add def} if
-
- pagedimensions
- /scaling
- height margin sub screenheight div
- width margin sub screenwidth div
- min def
- xcenter ycenter translate
- orientation neg rotate
- xoffset inch yoffset inch translate
- magnification dup aspectratio mul scale
-
- /height height margin sub def
- /width width margin sub def
- font findfont size scaling div scalefont setfont
- 1 setlinecap
- newpath
- } def
-
- /pagedimensions {
- useclippath userdict /gotpagebbox known not and {
- /pagebbox [clippath pathbbox newpath] def
- } if
- pagebbox aload pop
- 4 -1 roll exch 4 1 roll 4 copy
- landscape {4 2 roll} if
- sub /width exch def
- sub /height exch def
- add 2 div /xcenter exch def
- add 2 div /ycenter exch def
- userdict /gotpagebbox true put
- } def
-
- /pagesetup {/page exch def} bind def
-
- /space {
- /screenheight exch def
- /screenwidth exch def
- } bind def
-
- /setupspace {
- /scaling
- height margin sub screenheight div
- width margin sub screenwidth div
- min def
- scaling scaling scale
- screenwidth neg 2 div screenheight neg 2 div translate
- linewidth scaling div setlinewidth
- font findfont size scaling div scalefont setfont
- /spotsize linewidth 0 eq {.2} {linewidth 2 div} ifelse scaling div def
- } bind def
-
- /f {dup {scaling div} forall counttomark -1 roll astore 0 setdash} bind def
- /l {moveto lineto stroke} bind def
- /m {newpath moveto} bind def
- /n /lineto load def
- /s /stroke load def
- /p {spotsize 0 360 arc fill} bind def
- /c {0 360 arc stroke} bind def
-
- /a {
- /dy2 exch def
- /dx2 exch def
- /dy1 exch def
- /dx1 exch def
- dx1 dx1 mul dy1 dy1 mul add sqrt
- dy1 dx1 atan
- dy2 dx2 atan
- arc stroke
- } bind def
-
- /t {
- moveto
- size scaling div dup xtextshift mul exch ytextshift mul rmoveto
- show
- } bind def
-
- /done {/lastpage where {pop lastpage} if} def
-