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 #16947 is a reply to message #16883] Fri, 27 August 1999 00:00 Go to previous messageGo to previous message
m218003 is currently offline  m218003
Messages: 56
Registered: August 1999
Member
Hell! I am just trying to make IDL popular among my colleagues over here:

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

;- Create window with landscape aspect
device, get_screen_size=screen_size
xsize = screen[1] - 100
ysize = long(xsize * (21./29.7)) ; <--------
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 A4 page with 2 cm margin <------
device, /inches, xsize=21./2.54, ysize=29.7/2.54, xoffset=2./2.54, $
yoffset=2./2.54

;- Landscape mode on A4 page with 2 cm margin <------
device, /inches, xsize=29.7/2.54, ysize=21./2.54, xoffset=2./2.54, $
yoffset=(29.7-2.)/2.54

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.

But otherwise: Thanks a lot for this, Liam!!

Martin

--
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[[ Martin Schultz Max-Planck-Institut fuer Meteorologie [[
[[ Bundesstr. 55, 20146 Hamburg [[
[[ phone: +49 40 41173-308 [[
[[ fax: +49 40 441787 [[
[[ martin.schultz@dkrz.de [[
[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[ [[[[[[[
[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: Fri Nov 28 19:01:29 PST 2025

Total time taken to generate the page: 0.15755 seconds