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

Home » Public Forums » archive » Title , multiple Plot in IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Title , multiple Plot in IDL [message #7902] Mon, 27 January 1997 00:00 Go to next message
steigrad is currently offline  steigrad
Messages: 3
Registered: December 1995
Junior Member
I use the multiple plot in IDL (!P.MULTI ..).
So I get 2x3 plots. I want to make a title above those plots.

but how ?

XYOUTS didn't succeed.

Ralph


_/_/_/ _/_/_/ _/ _/ Ralph Steigrad (System Engineer)
_/ _/ _/ _/ Swiss Federal Institute of Technology ETH
_/_/ _/ _/_/_/ Winterthurerstrasse 190 / CH-8057 Zurich
_/ _/ _/ _/ MAIL : steigrad@geo.umnw.ethz.ch
_/_/_/ _/ _/ _/ PHONE: +41 1 2575238 FAX: +41 1 3625197

Key fingerprint = 1A 71 92 41 47 97 10 B2 B0 EA D3 29 3B 26 1F 0E
Key available finger -l steigrad@geo.ethz.ch
Re: Title , multiple Plot in IDL [message #7904 is a reply to message #7902] Mon, 27 January 1997 00:00 Go to previous messageGo to next message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ralph Steigrad <steigrad@geo.umnw.ethz.ch> writes:

> I use the multiple plot in IDL (!P.MULTI ..).
> So I get 2x3 plots. I want to make a title above those plots.
> but how ? XYOUTS didn't succeed.

Humm, probably not enough room for the title. The outside
margins of a multiple-plot page are controlled by the
![XYZ].OMARGIN system variables. These system variables
use that ol' favorite, *character* units, as the unit of
measure.

Try something like this:

!Y.OMARGIN=[2, 10]
!P.MULTI = [0, 2, 3]
FOR j = 0, 5 DO PLOT, FINDGEN(11)
XYOUTS, 0.5, 0.93, ALIGN=0.5, CHARSIZE=2.0, /NORMAL, $
'This is the plot title'

This works for me.

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
Re: Title , multiple Plot in IDL [message #7961 is a reply to message #7902] Wed, 29 January 1997 00:00 Go to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Ralph Steigrad <steigrad@geo.umnw.ethz.ch> writes:

> I use the multiple plot in IDL (!P.MULTI ..).
> So I get 2x3 plots. I want to make a title above those plots.
>
> David Fanning answered:
>
> Humm, probably not enough room for the title. The outside
> margins of a multiple-plot page are controlled by the
> ![XYZ].OMARGIN system variables. These system variables
> use that ol' favorite, *character* units, as the unit of
> measure.
>
> Try something like this:
>
> !Y.OMARGIN=[2, 10]
> !P.MULTI = [0, 2, 3]
> ....
>
> Thats what I did and didn't succeed, as I'am using the Z-buffer.
>
> Here is the part of my program
>
> ------
> SET_PLOT,'Z'
> DEVICE,SET_RESOLUTION=[RES_PLOT_X,RES_PLOT_Y]
> !Y.OMARGIN=[2, 10]
> !P.MULTI=[0,MULTI_PLOT_X,MULTI_PLOT_Y]
> for i=5L,FIELD+4 do plot,ti,r(i,*),background=255,
color=0,min_value=-998,TITLE=
> TITEL(i-5)
> XYOUTS, 0.5, 0.95, ALIGN=0.5, CHARSIZE=2.0,/NORMAL,STATION_NAME

I replied to this in private e-mail to Ralph, but haven't heard anything
back from him.

For the rest of you, I think the problem is that his Z-buffer window
is not the same size as his graphics display window. There is nothing
wrong with using XYOUTS in the Z-buffer. I think when he transfers
the "image" from the Z buffer into his graphics window he is clipping
the title.

I suggested he try this:

thisDevice = !D.Name
SET_PLOT, 'Z'
DEVICE,SET_RESOLUTION=[RES_PLOT_X,RES_PLOT_Y]
!Y.OMARGIN=[2, 10]
!P.MULTI=[0,MULTI_PLOT_X,MULTI_PLOT_Y]
for i=5L,FIELD+4 do plot,ti,r(i,*),background=255, color=0,min_value=-998
XYOUTS, 0.5, 0.95, ALIGN=0.5, CHARSIZE=2.0,/NORMAL,STATION_NAME
a = TVRD()
SET_PLOT, thisDevice
WINDOW, XSIZE=RES_PLOT_X, YSIZE=RES_PLOT_Y
TV, a

This kind of code works in the Z-buffer and on the display for me.

Would like to hear the result!

David

-----------------------------------------------------------
David Fanning, Ph.D.
Fanning Software Consulting
2642 Bradbury Court, Fort Collins, CO 80521
Phone: 970-221-0438 Fax: 970-221-4762
E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com
-----------------------------------------------------------
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: where help
Next Topic: size of a structure

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

Current Time: Wed Oct 08 19:51:02 PDT 2025

Total time taken to generate the page: 0.00612 seconds