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

Home » Public Forums » archive » Re: Plotting a Text Box below a plot so that also works when !P.MULTI is set.
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: Plotting a Text Box below a plot so that also works when !P.MULTI is set. [message #13630 is a reply to message #13624] Sun, 22 November 1998 00:00 Go to previous messageGo to previous message
Martin Schultz is currently offline  Martin Schultz
Messages: 515
Registered: August 1997
Senior Member
David Fanning wrote:

> Axel Schweiger (axel@apl.washington.edu) writes:
>
>> I want to plot a box containing text below an existing plot which
>> contains a graphic. I want this to work also when !P.multi is set.
>>
>> I have played around a bit with the POSITION parameter but that doesn't
>> seem to work when used with !P.MULTI. The Margins are another option. I
>> probably
>> could figure this out but somebody probably has already.
>
> I think you may have to give up on !P.Multi in this case,
> unless you are really, really clever (and even then I'm not
> sure you could do it or that it would be worth the effort).
> I think it would be much easier to just position the plots
> in the window yourself. Subsequent plots can be drawn into
> the window with the NOErase keyword.
>
> Cheers,
>
> David
>
> --
> David Fanning, Ph.D.
> Fanning Software Consulting
> Phone: 970-221-0438 E-Mail: davidf@dfanning.com
> Coyote's Guide to IDL Progamming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155

Hey David!

Wasn't it you yourself who told me about !x.window and !y.window which store
the size of the current plot window? As a first try you could position your
text with something like
px = (!x.window[0]+!x.window[1])/2.
py = !y.window[0]
xyouts,px,py,yourtext,/norm,align=0.5
and if you use the !x.margin and !y.margin keywords, you may even be able to
prevent the plot and the text box from running into each other.
The beauty of !p.multi is that you can easily specify the number of rows and
columns without having to go through these non-trivial calculations of the
position parameter. I don't think one should drop this too fast.

Regards,
Martin.


--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA

phone: (617)-496-8318
fax : (617)-495-4551

e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: PV-Wave: Linux Installation Problem
Next Topic: thanks to IDL I can program this now ...

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

Current Time: Thu Oct 09 22:22:19 PDT 2025

Total time taken to generate the page: 0.16556 seconds