Message-ID: <20050330230012.GA9261@cl.cam.ac.uk>
Date: 2005-03-30T23:00:12Z
From: Steven J. Murdoch
Subject: Finding the "height of a line of text" for axis
In-Reply-To: <1112191390.4905.11.camel@horizons.localdomain>
Thanks for your reply.
On Wed, Mar 30, 2005 at 08:03:10AM -0600, Marc Schwartz wrote:
> or even something like this:
>
> plot(1:5, axes = FALSE)
> axis(1, col.axis = "white", col = "red", tcl = 1)
> axis(1, col.axis = "white", col = "white", tcl = 0)
> axis(2, col.axis = "white", col = "red", tcl = 1)
> axis(2, col.axis = "white", col = "white", tcl = 0)
This is the effect I am trying to achieve. I did try the route of
overdrawing in white, but decided against it. The reason I haven't
used that, is that firstly I wasn't sure if there would be some
rounding error in a printer which would cause the background to
appear. Secondly, the end of the ticks look weird due to the different
line end types:
http://www.cl.cam.ac.uk/users/sjm217/volatile/r-lineend.png
Changing to square caps might help, but I was hoping there would be a
nice solution that would let me keep round caps. Any suggestions?
Thank you,
Steven Murdoch.
--
w: http://www.cl.cam.ac.uk/users/sjm217/