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

Home » Public Forums » archive » Re: Postscript output mods
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: Postscript output mods [message #33659 is a reply to message #33421] Fri, 10 January 2003 12:57 Go to previous messageGo to previous message
fardal is currently offline  fardal
Messages: 3
Registered: January 1996
Junior Member
"S. Penzes" <Steven.Penzes@drdc-rddc.gc.ca> wrote in message news:<1041884260.331402@coyote>...

> Sorry people. I meant 180 degrees ... he says hoping to forestall all
> the comments about using Portrait.

Don't know how to do this in IDL. It sure is annoying when all your
other programs think it should be oriented the other way. You didn't
say what your platform was... If you have the pstops command (common on
linux) you can say

pstops '0U(8.5in,11in)' infile.ps outfile.ps

There is probably a program on any platform to do something similar,
or you can write it yourself with the advice here:
http://www.physics.ohio-state.edu/~faqomatic/fom-serve/cache /140.html

I would use a hack like the one below to automate the rotation (type dclose
instead of device,/close to finish the file).

Mark Fardal
University of Victoria


;returns currently open ps file
;THIS IS DANGEROUS--RSI MAY CHANGE HELP FORMAT
function getpsfile

on_error, 2
if (!d.name ne 'PS') then message, 'Not in PS device.'

help,/device,output=helptxt
file = (strsplit( strcompress( strtrim( helptxt[2], 2 ) ), ' ' ,/extract))[1]
if (file eq '<none>') then file = 'idl.ps'

return, file
end


pro dclose

filename = getpsfile()

device,/close

spawn, 'pstops "0U(8.5in,11in)" '+filename+' idl_tmp.ps'
spawn, 'mv -f idl_tmp.ps ' + filename

return
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Satellite footprints
Next Topic: IDL for IRIX

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

Current Time: Fri Oct 10 14:15:27 PDT 2025

Total time taken to generate the page: 0.88144 seconds