[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-sig-mac
Subject:    [R-SIG-Mac] Yellow background with CairoPNG on MacOS 10.6.8
From:       Joe Schwab <joeschwabmd+R-SIG-Mac () gmail ! com>
Date:       2012-02-16 9:45:01
Message-ID: CAE=pxSkTM0sSz1RY7m5GqTMFKYpPRQb1JHbVBxsGkw=9hQm4GA () mail ! gmail ! com
[Download RAW message or body]

Hello all,

I have looked around the archives and have seen no mention of this. I
am using Cairo package 1.5-1 to generate some PNG files on MacOS
10.6.8 using R 2.14.1. Every PNG that I generate has a yellow
background to it no matter what I set the background option to. Even
the test code from the CairoPNG documentation (below) exhibits this
behavior:

# very simple KDE
Cairo(600, 600, file="plot.png", type="png", bg="white")
plot(rnorm(4000),rnorm(4000),col="#ff000018",pch=19,cex=2) #
semi-transparent red
dev.off() # creates a file "plot.png" with the above plot

To see the output from this, please go to
http://www.joeschwab.com/CairoPNG-test/plot.png

I am using the Cairo package because I am developing on a Mac, but
deploying onto a Linux server that does not have X11 support, but
doeswork with Cairo. On my linux server, plots generated on a device
created with Cairo/CairoPNG look just fine.

Any thoughts/help/suggestions would be appreciated.

Cheers,
Joe

_______________________________________________
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic