On my current home system, I am getting undesirable output from
graphical devices such as png() and pdf(). The graphical output is
blurry. I haven't experienced the problem on other systems. As you
will see from the attached text file (more information on this file
below), the problem does not occur when type='Xlib' is forced. The
blurriness is more severe with bitmap output (yes, I am viewing the
bitmap files at 100%), but occurs with pdf output as well.

Software details: Fedora 10, with at least the following packages:

-- R, R-core, R-devel
-- cairo, cairo-devel
-- pixman, pixman-devel
-- libpng, libpng-devel
-- poppler

Everything is "current" and updated via Fedora's repository. R was
installed via Fedora's repository.

I've attached some commands and output in a text file. This file includes:

(1) hardware information
(2) information about my R installation
(3) code for simple R graphics, with comments re output, plus URLs for
the corresponding graphical output

Any advice would be really appreciated.
[u...@localhost ~]$ lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 
945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 
943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML 
Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition 
Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 
(rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 
(rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 
(rev 02)
00:1c.3 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 4 
(rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI 
Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI 
Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge 
(rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller 
(rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI 
Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Intel Corporation 82573L Gigabit Ethernet 
Controller
03:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG Network 
Connection (rev 02)
15:00.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller

[u...@localhost ~]$ R
> sessionInfo()
R version 2.8.0 (2008-10-20) 
i386-redhat-linux-gnu 

locale:
LC_CTYPE=en_US.UTF-8;LC_NUMERIC=C;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.UTF-8;LC_MONETARY=C;LC_MESSAGES=en_US.UTF-8;LC_PAPER=en_US.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=C

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base 

>
> version
               _                           
platform       i386-redhat-linux-gnu       
arch           i386                        
os             linux-gnu                   
system         i386, linux-gnu             
status                                     
major          2                           
minor          8.0                         
year           2008                        
month          10                          
day            20                          
svn rev        46754                       
language       R                           
version.string R version 2.8.0 (2008-10-20)

>
> capabilities()
   jpeg      png     tiff    tcltk      X11     aqua http/ftp  sockets 
   TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE     TRUE 
 libxml     fifo   cledit    iconv      NLS  profmem    cairo 
   TRUE     TRUE     TRUE     TRUE     TRUE    FALSE     TRUE 

>
> X11.options(reset=TRUE)
> X11.options()
$display
[1] ""

$width
[1] NA

$height
[1] NA

$pointsize
[1] 12

$bg
[1] "transparent"

$canvas
[1] "white"

$gamma
[1] 1

$colortype
[1] "true"

$maxcubesize
[1] 256

$fonts
[1] "-adobe-helvetica-%s-%s-*-*-%d-*-*-*-*-*-*-*"
[2] "-adobe-symbol-medium-r-*-*-%d-*-*-*-*-*-*-*"

$xpos
[1] NA

$ypos
[1] NA

$title
[1] ""

$type
[1] "cairo"

$antialias
[1] 1

> 
> X11.options(reset=TRUE)
> plot(1:10)
> ## result: box lines fuzzy at top and left, and appears 
> ## darker and thicker where the axes are overplotted
>
> X11.options(reset=TRUE)
> X11.options(antialias=2) # antialias=2 is 'none'
> plot(1:10, antialias='none')
> ## result: pretty much no fuzziness
>
> X11.options(reset=TRUE)
> X11.options(type='Xlib')
> plot(1:10)
> ## result: no fuzziness at all 

>
> png('test.png') # type is 'cairo'
> plot(1:10)
> dev.off()
> ## result: box lines fuzzy at top and left, and appears 
> ## darker and thicker where the axes are overplotted
> ## http://www.piccdrop.com/images/1229495327.png
>
> png('test.png',antialias='none') # type is 'cairo'
> plot(1:10)
> dev.off()
> ## result: no fuzziness at all but the box is missing
> ## the top and left border lines
> ## http://www.piccdrop.com/images/1229495388.png
>
> png('test.png',type='Xlib')
> plot(1:10)
> dev.off()
> ## result: no fuzziness at all and no lines missing
> ## http://www.piccdrop.com/images/1229495428.png

>
> pdf('test.pdf') 
> plot(1:10)
> dev.off()
> ## result: slight fuzziness of box lines at 100% view; 
> ## box lines do not appear to be of constant width 
> ## and are darker where axes are overplotted ...
> ## zooming in at 300%: box lines less fuzzy but it is 
> ## clear that the axis does not perfectly align with
> ## the box lines ...
> ## AND: all points are the letter 'q'
> ## http://www.piccdrop.com/images/1229495650.pdf
>
> pdf('test.pdf',useDingbats=FALSE)
> plot(1:10)
> dev.off()
> ## result: slight fuzziness of box lines at 100% view; 
> ## box lines do not appear to be of constant width 
> ## and are darker where axes are overplotted ...
> ## zooming in at 300%: box lines less fuzzy but it is 
> ## clear that the axis does not perfectly align with
> ## the box lines ...
> ## BUT: all points are open circles
> ## http://www.piccdrop.com/images/1229495767.pdf




______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to