[Rd] axis(...,las=1) breaks postscript code in certain cases (PR#865)

maechler@stat.math.ethz.ch maechler@stat.math.ethz.ch
Wed, 7 Mar 2001 18:09:01 +0100 (MET)


A colleage of mine (Roland Brun) has found the following 
reproducible problem: 

  In some circumstances, incorrect (for gv/gs) PostScript seems to be
  created when "las = 1".

  {for many versions of R (Linux) at least}

The following code shows you the symptom
    (gv pops up an error message window) :


##- Generate data 
y1 <- 10^seq(0,6)   ##- positive exponents 
y2 <- 10^seq(-4,2)  ##- including negative exponents 

postscript("test.ps")

par(mfrow=c(2,2),mar=c(3,6,0,0)+0.1,oma=c(3,1,1,1),mgp=c(4.5,1,0))

##- Plot1: works perfectly (y1 and las=0)
plot(1:length(y1),y1,type="p",axes=F,log="y")
  box()
  axis(1,at=1:length(y1))
  axis(2,at=y1,las=0) 

##- Plot2: works perfectly (y1 and las=1)
plot(1:length(y1),y1,type="p",axes=F,log="y")
  box()
  axis(1,at=1:length(y1))
  axis(2,at=y1,las=1) 

##- Plot3: works perfectly (y2 and las=0)
plot(1:length(y2),y2,type="p",axes=F,log="y")
  box()
  axis(1,at=1:length(y2))
  axis(2,at=y2,las=0) 

##- Plot4: breaks postscript code (y2 and las=1)
plot(1:length(y2),y2,type="p",axes=F,log="y")
  box()
  axis(1,at=1:length(y2))
  axis(2,at=y2,las=1) 

dev.off()
system("gv test.ps")




--please do not edit the information below--

Version:
 platform = i686-pc-linux-gnu
 arch = i686
 os = linux-gnu
 system = i686, linux-gnu
 status = Under development (unstable)
 major = 1
 minor = 3.0
 year = 2001
 month = 03
 day = 07
 language = R

Search Path:
 .GlobalEnv, package:ctest, package:SfS, Autoloads, package:base

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._