[Thread Prev][Thread Next][Index]

Re: buggy postscript?



Hi Helge,
	You need to use the little known "white pen (19)" I think, rather
than redefining pen 6 as you do.  When I tried what you did via the
following demo
set mode meta ; ppl pltnme,whitelabs.plt
shade/i=1:8/j=1:6 i+j
let mx=if(mod(l,8) ne 0)then mod(l,8) else 8
let my=if(l le 8)then 2 else 5
let lab=tsequence({'A','B','C','D','E','F','G','H','I','J','K','L','M'})
repeat/l=1:13 (PLOT/OVER/VS/nolab/COLOR=white/sym=3 mx,my)
PPL COLOR 6 100,100,100
REPEAT/L=1:13 (LABEL `mx`,`my+0.1` -1 0 0.2 @P6`lab` )
can mode meta
frame/file=whitelabs.gif

the resulting GIF had white marks and labels as expected (and so did
Fprint -X) but a postscript file produced from whitelabs.plt had
reverted to a dot-dash black line when viewed with gs.

HOWEVER if you drop the PPL COLOR 6 100,100,100 and replace the @P6 in
the label with @c019 as in the revised demo below all is well!

set mode meta ; ppl pltnme,whitelabs.plt
shade/i=1:8/j=1:6 i+j
let mx=if(mod(l,8) ne 0)then mod(l,8) else 8
let my=if(l le 8)then 2 else 5
let lab=tsequence({'A','B','C','D','E','F','G','H','I','J','K','L','M'})
repeat/l=1:13 (PLOT/OVER/VS/nolab/COLOR=white/sym=3 mx,my)
PPL COLOR 6 100,100,100
REPEAT/L=1:13 (LABEL `mx`,`my+0.1` -1 0 0.2 @c019`lab` )
can mode meta
frame/file=whitelabs.gif

Fprint -R -o whitelabs.ps whitelabs.plt
gs whitelabs.ps
(With "gv whitelabs.ps" the grey background makes the labels look like
those of someone whose Mom isn't using the right brand of detergent.)

Good luck,
Mick

|____spillane@pmel.noaa.gov____|
|__Room 2070 Bldg#3 NOAA/PMEL__|
|____Phone_:_(206)526-6780_____|




[Thread Prev][Thread Next][Index]

Dept of Commerce / NOAA / OAR / PMEL / TMAP

Contact Us | Privacy Policy | Disclaimer | Accessibility Statement