Skip to content
Prev 8846 / 398502 Next

Setting fontsize in dev.copy2eps

On Tue, 9 Jan 2001, Prof Brian Ripley wrote:

            
That's sometimes the problem (font metrics do differ by device
surprisingly much), but the basic problem is in legend. That computes the
text width and height and converts them to user coordinates, those in use
at the time legend() is run. Try resizing a plot with a legend on (as Ross
says he likes to do to fine-tune the layout). The text stays of fixed size
but the box changes size.

I think you do need to draw on a device at the target size to work around
this. That is what I have always done: reuse the plotting commands on a
postscript device, suitably tuned.