From stephen@anc.ed.ac.uk  Fri Jun  9 09:17:05 2000
From: stephen@anc.ed.ac.uk (stephen@anc.ed.ac.uk)
Date: Fri, 9 Jun 2000 10:17:05 +0200 (MET DST)
Subject: [Rd] Postscript device ignores title if it is too long. (PR#565)
Message-ID: <200006090817.KAA29023@pubhealth.ku.dk>

Hi,

This may just be an inconsistency between terminal drivers, rather
than a proper bug.

If the main title of a plot is too wide to all fit on the plot, the
X11 driver prints as much of the title as it can, but the postscript
driver totally ignores the title.

Here's a simple example:

% R
> plot(runif(1000), main="a long xxxxxxxxxxxx title") 
> dev.print(file="test.ps")

On my setup, I needed about 110 x's in the title to reproduce this
problem.  This may seem an unlikely long title, but I found the
problem when using much shorter titles on multiple figures (created
using par(mfrow=c(2,3)) for example).

Perhaps the postscript driver could give a warning if the title is
too long to be printed?  

Also, I found a small typo in R-1.0.1/src/library/base/man/postscript.Rd
 - on line 48:
%%>>> REAL DOC in SOURCE:    ../../../main/devices.c  &   ../../../unix/devPS.c
the pathname to devPS.c should be: ../../../main/devPS.c


Cheers,

Stephen

> version
         _               
platform alpha-dec-osf4.0
arch     alpha           
os       osf4.0          
system   alpha, osf4.0   
status                   
major    1               
minor    0.1             
year     2000            
month    April           
day      14              
language R               

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] Postscript device ignores title if it is too long. (PR#565)
stephen@anc.ed.ac.uk