My setup: R 2.4.0, Windows 2000, Acrobat Reader 7.
When I create a .pdf with translucent colors, the translucency works
correctly for points, but not for text. Below is some R code that
creates a .pdf with this phenomenon.
I was going to report this as a bug in R, but then I tried to view the
pdf with a couple of other viewers and found that at least one of the
viewers correctly displayed the file (with translucent text), so maybe
it is a bug with Acrobat Reader. It might be worth checking to see if
colors for "text" are handled any differently than colors for "points"
that might cause this problem.
Best,
Kevin Wright
black <- rgb(0,0,0,.75)
blue <- rgb(0, .2, 1, .75)
red <- rgb(1,0,0,.75)
pdf("pdfcols.pdf", version="1.4")
set.seed(50)
plot(.5,.5,type="n",xlim=c(0,1),ylim=c(0,1))
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
text(.1, .1, "This is red", col=red)
text(.1, .1, "Also red", col=red)
text(.2, .2, "This is blue", col=blue)
text(.2, .2, "Also blue", col=blue)
text(.3, .3, "This is black", col=black)
text(.3, .3, "Also black", col=black)
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
dev.off()
Bug in Acrobat Reader 7 (or R?) with translucent text
3 messages · Kevin Wright, Marc Schwartz, Steven McKinney
On Thu, 2006-10-19 at 15:14 -0500, Kevin Wright wrote:
My setup: R 2.4.0, Windows 2000, Acrobat Reader 7.
When I create a .pdf with translucent colors, the translucency works
correctly for points, but not for text. Below is some R code that
creates a .pdf with this phenomenon.
I was going to report this as a bug in R, but then I tried to view the
pdf with a couple of other viewers and found that at least one of the
viewers correctly displayed the file (with translucent text), so maybe
it is a bug with Acrobat Reader. It might be worth checking to see if
colors for "text" are handled any differently than colors for "points"
that might cause this problem.
Best,
Kevin Wright
black <- rgb(0,0,0,.75)
blue <- rgb(0, .2, 1, .75)
red <- rgb(1,0,0,.75)
pdf("pdfcols.pdf", version="1.4")
set.seed(50)
plot(.5,.5,type="n",xlim=c(0,1),ylim=c(0,1))
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
text(.1, .1, "This is red", col=red)
text(.1, .1, "Also red", col=red)
text(.2, .2, "This is blue", col=blue)
text(.2, .2, "Also blue", col=blue)
text(.3, .3, "This is black", col=black)
text(.3, .3, "Also black", col=black)
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
dev.off()
I can confirm problems on FC5 using Reader 7.0.8. The text appears
opaque.
An easier to see plot example might be:
black <- rgb(0, 0, 0, .5)
blue <- rgb(0, .2, 1, .5)
red <- rgb(1, 0, 0, .5)
pdf("TL.pdf", version = "1.4")
plot(1, 1, type = "n")
text(1.01, 1, "XXXXXXX", cex = 5, col = black)
text(1.02, 1, "XXXXXXX", cex = 5, col = red)
text(1.03, 1, "XXXXXXX", cex = 5, col = blue)
dev.off()
Using the 'Document Viewer' application on FC5, which is Evince, and
xpdf, the text is clearly translucent.
It's a bug in Adobe, unless there is a setting in Reader that impacts
this. Reviewing and trying some (ie. CoolType, Smoothing, etc.), there
is nothing immediately apparent that effects the display.
PDF File attached.
HTH,
Marc Schwartz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TL.pdf
Type: application/pdf
Size: 2934 bytes
Desc: not available
Url : https://stat.ethz.ch/pipermail/r-devel/attachments/20061019/0995fcbe/attachment-0004.pdf
Hi Kevin, On my Mac, (PowerPC OS X 10.4.8) I see the same plot in Adobe reader and in the Mac preview app. Text is transluscent when overlaid by a plot icon. Text is not transluscent when overlaid by other text. (Is this expected?) Plot icons are transluscent when overlaid by other plot icons. Adobe is buggy! (I have trouble with Adobe rendering a pdf containing four scatterplots with 380000 data points each, though the Mac preview.app can render them properly.) Good luck filing a bug report with Adobe :( Adobe: Version 7.0.8 5/16/2006 R:
sessionInfo()
R version 2.4.0 (2006-10-03)
powerpc-apple-darwin8.7.0
locale:
en_CA.UTF-8/en_CA.UTF-8/en_CA.UTF-8/C/en_CA.UTF-8/en_CA.UTF-8
Steven McKinney
Statistician
Molecular Oncology and Breast Cancer Program
British Columbia Cancer Research Centre
email: smckinney at bccrc.ca
tel: 604-675-8000 x7561
BCCRC
Molecular Oncology
675 West 10th Ave, Floor 4
Vancouver B.C.
V5Z 1L3
Canada
-----Original Message-----
From: r-devel-bounces at r-project.org on behalf of Kevin Wright
Sent: Thu 10/19/2006 1:14 PM
To: r-devel at stat.math.ethz.ch
Subject: [Rd] Bug in Acrobat Reader 7 (or R?) with translucent text
My setup: R 2.4.0, Windows 2000, Acrobat Reader 7.
When I create a .pdf with translucent colors, the translucency works
correctly for points, but not for text. Below is some R code that
creates a .pdf with this phenomenon.
I was going to report this as a bug in R, but then I tried to view the
pdf with a couple of other viewers and found that at least one of the
viewers correctly displayed the file (with translucent text), so maybe
it is a bug with Acrobat Reader. It might be worth checking to see if
colors for "text" are handled any differently than colors for "points"
that might cause this problem.
Best,
Kevin Wright
black <- rgb(0,0,0,.75)
blue <- rgb(0, .2, 1, .75)
red <- rgb(1,0,0,.75)
pdf("pdfcols.pdf", version="1.4")
set.seed(50)
plot(.5,.5,type="n",xlim=c(0,1),ylim=c(0,1))
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
text(.1, .1, "This is red", col=red)
text(.1, .1, "Also red", col=red)
text(.2, .2, "This is blue", col=blue)
text(.2, .2, "Also blue", col=blue)
text(.3, .3, "This is black", col=black)
text(.3, .3, "Also black", col=black)
points(runif(200),runif(200), col=black)
points(runif(200),runif(200), col=blue)
points(runif(200),runif(200), col=red)
dev.off()
______________________________________________
R-devel at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel