plot() after split.screen() on postscript() Device produces inconsistent PostScript file (PR#378)

boble@usa.net boble@usa.net
Fri, 17 Dec 1999 21:32:25 +0100 (MET)


Full_Name: Boris Leykekhman
Version: 0.90.0
OS: Red Hat Linux 6.1
Submission from: (NULL) (131.136.242.1)


Problem:
Plot()  after split.screen() on postscript() Device produces PostScript file,
which crashes PS interpretter with error message: 
“Error: /undefined in fg”
To reproduce:
#----- Start R code
postscript("test.ps")
split.screen(c(2,2))
screen(1)
plot(c(1,2,3,4))
dev.off()
#----- End R code
Workaround:
Inserting the line with definition of  “fg”, taken from the correct PS file,
solved my problem.
The line is: 
“/fg {0.0000 0.0000 0.0000} def fg rgb”
It was inserted after:
“%%EndProlog2”


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._