[R] postscript rotation (bug?)

2005-03-14 Thread Wouter Buytaert

hello,

when making postscript images with postscript() and converting them to
pdf with epstopdf, some images are rotated 90 degrees clockwise. The
postscript displays fine (ggv).

It seems to be related with length(xlab)/length(ylab), e.g:

postscript(wrong.ps, width=5, height=5, horizontal=F, onefile=F,
paper = special)
plot(1, 1, xlab=short, ylab=abitlonger)
dev.off()

If then converted to pdf with epstopf, then wrong.pdf is rotated

However,

postscript(OK.ps, width=5, height=5, horizontal=F, onefile=F, paper =
special)
plot(1, 1, xlab=equal, ylab=equal)
dev.off()

en then converted to OK.pdf displays OK.

Setting horizontal=T does not change anything for the final pdf file.
(The .ps is rotated -90 degrees however).

Is anyone able to reproduce this problem? I am using fedora core 3.

Thanks,

Wouter

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] postscript rotation (bug?)

2005-03-14 Thread Marc Schwartz
On Mon, 2005-03-14 at 15:16 +, Wouter Buytaert wrote:
 hello,
 
 when making postscript images with postscript() and converting them to
 pdf with epstopdf, some images are rotated 90 degrees clockwise. The
 postscript displays fine (ggv).
 
 It seems to be related with length(xlab)/length(ylab), e.g:
 
 postscript(wrong.ps, width=5, height=5, horizontal=F, onefile=F,
 paper = special)
 plot(1, 1, xlab=short, ylab=abitlonger)
 dev.off()
 
 If then converted to pdf with epstopf, then wrong.pdf is rotated
 
 However,
 
 postscript(OK.ps, width=5, height=5, horizontal=F, onefile=F, paper =
 special)
 plot(1, 1, xlab=equal, ylab=equal)
 dev.off()
 
 en then converted to OK.pdf displays OK.
 
 Setting horizontal=T does not change anything for the final pdf file.
 (The .ps is rotated -90 degrees however).
 
 Is anyone able to reproduce this problem? I am using fedora core 3.

There was just a discussion on this. See this thread:

https://stat.ethz.ch/pipermail/r-help/2005-March/065593.html

HTH,

Marc Schwartz

__
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html