Skip to content
Prev 18799 / 398498 Next

trouble getting output from graphs, again

On Sat, 13 Apr 2002, Paul Johnson wrote:

            
It's not so.  Matching sizes and pointsizes helps a great deal, but
the idea of copying graphs by replaying the display list (as used by
R and S) is fundamentally limited.  I do this by using the postscript
device directly and by experimenting with where to put the legend.

One fundamental limitation is that font metrics will be computed on the X11
device, but the PS device will layout the text.  I think that is what you
are seeing here.  You may just be being caught by rounding in the
pointsize requested: as I recall it on X11 the pointsize is approximated
by the available fonts.  (On the postscript() device it is for some reason
rounded down.  On X11 what happens depends on the screen dpi, for example.)
EMF, yes, ps no.  The issue is that the screen device and EMF are sharing
the same fonts and hence font metrics, whereas PS is not.  You may do
better because the on-screen font size is approximated less: Windows
is using (by default) scaleable fonts whereas X11() is not.