From ripley at stats.ox.ac.uk  Mon Oct 24 22:41:04 2005
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Mon, 24 Oct 2005 21:41:04 +0100 (BST)
Subject: [Rd] Problems with example(Grid) in grid package
In-Reply-To: <435D4298.8030703@stat.auckland.ac.nz>
References: <971536df0510210719m535de052s4ea9d5737ccf4119@mail.gmail.com>
	<f8e6ff050510211003g29cb94a6o13fe5e33fe0a1335@mail.gmail.com>
	<435D4298.8030703@stat.auckland.ac.nz>
Message-ID: <Pine.LNX.4.61.0510242138580.14299@gannet.stats>

On Tue, 25 Oct 2005, Paul Murrell wrote:

> hadley wickham wrote:
> > I've also noticed the behaviour of grid.rect() has changed in 2.2.0.
> > Before the fill defaulted to transparent, but now it defaults to
> > white.
>
>
> The initial value of the 'gp' settings for the ROOT grid viewport has
> changed in 2.2.0 (see grid/doc/changes.txt).  Before it defaulted to
> transparent, but now it defaults to whatever the 'bg' is for the current
> device (on some, e.g., png() this is "white", though I'm not sure why
> right now)

Because many (maybe even most) png viewers do not handle transparency 
correctly.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] Problems with example(Grid) in grid package
Prof Brian Ripley