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

Home » Public Forums » archive » Re: !p.multi question: margin possible at top of page?
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: !p.multi question: margin possible at top of page? [message #1889 is a reply to message #1887] Fri, 18 March 1994 11:11 Go to previous messageGo to previous message
schmitt is currently offline  schmitt
Messages: 3
Registered: December 1993
Junior Member
> I am trying to find out if anyone has succesfully been able to create a
> margin at the top of a page while !p.multi is being used.

There's one way of doing this, if two conditions are satisfied:
1.) You're only worried about output in postscript form.
2.) You don't mind a KLUGE.
It takes advantage of the (surmised) fact that the margins IDL uses for
postscript output are a bit sloppy, and there's room at the top above
all of the plots.
The kluge:
After plotting all of the needed plots on a page with !p.multi, execute
this bit of code to put a title contained in the string title$ above
the page
...
pmh = !p.multi
!noeras=1
!p.multi=0; reset plots/page
xyouts,0.,1.,title$,/norm
!noeras=0
!p.multi=pmh
...
(I don't even know if !noeras is a recommended system variable anymore,
it may not even be needed.)
This essentially redefines the page as a single plot (1 plot/page), and
puts the text string at the (normalized) position x=0, y=1. Since this
is the position of the LOWER left hand corner of the text string, the
string is plotted above the page. Using this with a tektronix terminal
emulator gives just the bottom edge of the text over the plots, but it
appears to print fine with postscript output (landscape, at least).
YMMV. ONVWPBL.

Obviously, it would really be handy for IDL to have an internal way of
doing it, and I strongly urge RSI to put this feature in. Right after
they fix the bugs in contour.

-----------------------------------------------------------
Andy Schmitt schmitt@this.nrl.navy.mil
Code 6730 : Naval Research Lab : Washington DC : 20375-5346
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: IDL and MacX
Next Topic: thanks for the !x.omargin info!!

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

Current Time: Wed Oct 08 19:25:44 PDT 2025

Total time taken to generate the page: 0.00402 seconds