Skip to content
Prev 303112 / 398503 Next

device "mismatch", coordinates trouble with X11 and pdf devices

On Aug 11, 2012, at 07:53 , Paul Johnson wrote:

            
The difference is not in locator() but in the circles, which in turn is due to different aspect ratios in the two devices. Notice that in the X11 plot, the circles are truncated top and bottom, whereas in PDF you see the entire perimeter. The axes are roughly the same. I.e. the circles on the X11 device would map onto ellipses on the PDF by vertical stretching. 

If you look carefully, you can see that the X11 plot is "less square" than the PDF. The distance between x ticks is bigger than that between y ticks. Notice that both _devices_ are square, but the plotting regions are not. This is because the margins remove 9.2 lines of text vertically but 6.2 lines horizontally. Consequentially, a difference in font size causes a difference in aspect ratio.

plot() has an asp= parameter....   

-pd