[Rd] Bug in Acrobat Reader 7 (or R?) with translucent text
Steven McKinney
smckinney at bccrc.ca
Fri Oct 20 01:06:56 CEST 2006
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
More information about the R-devel
mailing list