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

Home » Public Forums » archive » Mac display help
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: Mac display help [message #16965 is a reply to message #16883] Thu, 26 August 1999 00:00 Go to previous messageGo to previous message
Liam Gumley is currently offline  Liam Gumley
Messages: 473
Registered: November 1994
Senior Member
To create a graphics window with the same aspect as a portrait or landscape
page:

;- Create window with portrait aspect
device, get_screen_size=screen_size
ysize = screen[1] - 100
xsize = long(ysize * (8.5 / 11.0))
window, /free, xsize=xsize, ysize=ysize

;- Create window with landscape aspect
device, get_screen_size=screen_size
xsize = screen[1] - 100
ysize = long(xsize * (8.5 / 11.0))
window, /free, xsize=xsize, ysize=ysize

;- To set the vector fonts to an appropriate size
device, set_character_size=[10, 12]

To set up Postscript portrait and landscape mode pages:

;- Portrait mode on 8.5 x 11 in. page with 0.75 in. margin
device, /inches, xsize=7.0, ysize=9.5, xoffset=0.75, yoffset=0.75

;- Landscape mode on 11 x 8.5 in. page with 0.75 in. margin
device, /inches, xsize=9.5, ysize=7.0, xoffset=0.75, yoffset=10.25

If you then use normalized coordinates and/or !p.multi for positioning, your
Postscript output should look just about the same as it does in a graphics
window.

Cheers,
Liam.

--
Liam E. Gumley
Space Science and Engineering Center, UW-Madison
http://cimss.ssec.wisc.edu/~gumley
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Resetting data in IDLgrVolume object
Next Topic: looking for beta-tester to ION demonstration

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

Current Time: Sun Oct 12 06:25:32 PDT 2025

Total time taken to generate the page: 1.84249 seconds