Re: Plotting one Title in a multiplot Window [message #10573] |
Fri, 12 December 1997 00:00 |
davidf
Messages: 2866 Registered: September 1996
|
Senior Member |
|
|
Roger Zimmermann writes:
> How can we plot one headline/title in a multplot
> window (36 boxes) w/ Direct Graphics ?
Normally when you set up a multiplot window:
!P.Multi = [0, 6, 6]
IDL calculates the size of the plots based on the entire
window. What you want to do is save some room at the top
for a title for the entire window. You do this with the
!Y.OMargin (Y Outside Margin) system variable. Margins,
you recall, are set in *character* units, so this code
is not completely machine portable (you have to experiment
a little), but I have had success with something like this:
!Y.OMargin = [2, 4]
!P.Multi = [0, 6, 6]
For j=0,35 DO Plotting(j)
XYOutS, 0.5, 0.9, /Normal, 'Plot Title', Size=2, Align=0.5
Cheers,
David
-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
E-Mail: davidf@dfanning.com
Phone: 970-221-0438
Coyote's Guide to IDL Programming: http://www.dfanning.com/
|
|
|
Re: Plotting one Title in a multiplot Window [message #10575 is a reply to message #10573] |
Fri, 12 December 1997 00:00  |
Evilio del Rio
Messages: 17 Registered: December 1997
|
Junior Member |
|
|
On Fri, 12 Dec 1997, Roger Zimmermann wrote:
> Hi all,
> how can we plot one headline/title in a multplot window (36 boxes) w/
> Direct Graphics ?
>
> should be something like:
>
> !P.MULTI = [0,1,1]
> xyouts, 0.,0.98,headline,/NORMAL
> !P.MULTI = [0,6,6]
Try:
!P.MULTI = [6*6,6,6] ; the !P.MULTI[0L] = 6*6 tells IDL that there
; are still 6*6 plots to be done so the next plot will not
; erase the window. If !P.MULTI[0L] = 0, IDL erases the
; window before the first plot.
> for i = 0, 5 do begin
> for j = 0, 5 do begin
> plot, data[i,j,*], ...
> endfor
> endfor
>
Cheers,
____________________________________________________________ ____
Evilio Jose del Rio Silvan Institut de Ciencies del Mar
E-mail: edelrio@icm.csic.es URL: http://www.bodega.org/
"Anywhere you choose,/ Anyway, you're gonna lose"- Mike Oldfield
|
|
|