Re: status of PNG and EPS output from Plot Save method in IDL v8.4? [message #89116 is a reply to message #89107] |
Fri, 25 July 2014 06:52  |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Craig Markwardt writes:
> IDL sizes everything about a plot with respect to the default font size. This includes the plot margins.
>
> The "problem" comes because IDL treats the on-screen display and the PS pixel sizes as being different. IDL actually thinks the EPS canvas is quite a bit larger than the on-screen canvas (relative to the font size), so the plot box takes up a larger amount of space relative to the fonts.
>
> That's something I tried to address in my PXPERFECT procedure.
>
> If you can find the right scale factor for the font size - or equivalently the right scale factor for the X_SIZE and Y_SIZE, you should be able to get perfect output without tweaking anything else.
I think there is a bit more to it than this. In Coyote Graphics I am
careful to use cgDisplay to create a graphics "window". This will create
a canvas with the same aspect ratio either on the display and in the
PostScript device. A plot, positioned with the POSITION keyword should
take up the same relative amount of space in both devices. But, I still
have to scale the font size to get PostScript output to look like
display output. And, of course, I have to use different scaling factors
for Windows and UNIX computers, as well as for how many plots I am
putting on the display! Sigh...
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|