[Rd] R 'postscript' plot - not a valid postscript (PR#7559)
dan at bolser.co.uk
dan at bolser.co.uk
Mon Jan 24 17:05:52 CET 2005
Full_Name: Mr. Daniel Murray Bolser
Version: R 2.0.0 (2004-10-04)
OS: Linux beagle 2.4.20-31.9 #1 Tue Apr 13 17:38:16 EDT 2004 i686 athlon i386 GNU/Linux
Submission from: (NULL) (193.60.81.207)
Trying to execute the following code produces a 'not a valid postscript' error
from various postscript readers (gv, ggv, ghostscript). A very similar code
works fine.
<CODE>
postscript()
plot( 1:100, ylim=c(1,700), type='n', log='y')
abline(v=seq(0,100,10))
abline(h=10)
abline(h=seq(0,100, 10)) # Comment out this line and it works fine
dev.off()
</CODE>
Opening the resulting file 'Rplots.ps' gives the following error from
ghostscript (version 7.05)...
GNU Ghostscript 7.05 (2002-04-22)
Copyright (C) 2002 artofcode LLC, Benicia, CA. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Loading NimbusRomNo9L-Regu font from
/usr/share/fonts/default/Type1/n021003l.pfb... 2410668 1054394 1642520 347466 0
done.
Loading NimbusSanL-Regu font from /usr/share/fonts/default/Type1/n019003l.pfb...
2785628 1380272 1662616 358654 0 done.
Using NimbusSansL-Regu font for NimbusSanL-Regu.
Loading NimbusSanL-Bold font from /usr/share/fonts/default/Type1/n019004l.pfb...
3070120 1592924 1702808 364331 0 done.
Loading NimbusSanL-ReguItal font from
/usr/share/fonts/default/Type1/n019023l.pfb... 3187264 1694142 1702808 369303 0
done.
Loading NimbusSanL-BoldItal font from
/usr/share/fonts/default/Type1/n019024l.pfb... 3284312 1740192 1702808 354427 0
done.
Loading StandardSymL font from /usr/share/fonts/default/Type1/s050000l.pfb...
3324504 1781043 1702808 358380 0 done.
Error: /undefined in nan
Operand stack:
77.04
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-- 2 %stopped_push --nostringval-- --nostringval--
--nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3
%oparray_pop 1 3
%oparray_pop .runexec2 --nostringval-- --nostringval-- --nostringval--
2 %stopped_push --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1049/1123(ro)(G)-- --dict:0/20(G)-- --dict:108/200(L)--
Current allocation mode is local
Current file position is 4083
GNU Ghostscript 7.05: Unrecoverable error, exit code 1
Looking at this just now I see the problem, but if a ps file is written, it
should be viewable, so I think this is still a bug.
Cheers,
Dan.
More information about the R-devel
mailing list