comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » status of PNG and EPS output from Plot Save method in IDL v8.4?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
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 Go to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: writing a variable in a netcdf 4 with IDL
Next Topic: writing different file to a single file

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 10:51:38 PDT 2025

Total time taken to generate the page: 0.00185 seconds