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 
Return to the default flat view Create a new topic Submit Reply
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
-----------------------------------------------------------
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: where help
Next Topic: size of a structure

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

Current Time: Fri Oct 10 21:22:34 PDT 2025

Total time taken to generate the page: 0.24183 seconds