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

Home » Public Forums » archive » Re: text positioning within multiple plots
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: text positioning within multiple plots [message #54708 is a reply to message #54707] Tue, 10 July 2007 07:50 Go to previous messageGo to previous message
Conor is currently offline  Conor
Messages: 138
Registered: February 2007
Senior Member
On Jul 10, 10:38 am, metachronist <rkombi...@gmail.com> wrote:
> May be this is already been discussed or trivial. In any case, I have
> multiple plots that go into same page, and I would like to position
> text within each of these sub windows, as they are plotted from within
> a loop, while using !p.multi.
> What is the best way to do it? For example, I have !
> p.multi=[0,2,7,0,1]. Say, I would like to put the station codes inside
> each of these 14 subwindows. I tried 'xyouts' with a bunch of
> combinations, but didn't work. I was thinking that when we use default
> data coordinates, then if we specify the location of each call to
> xyouts based on "data" specific to that window, then it should put the
> text at the correct location within that specific window. But it's
> not?! :-( Appreciate any help.
> TIA,
> /rk

xyouts works exactly the same with !P.MULTI set as it does without
it. For instance:

!P.MULTI = [0,1,2]
plot,[0,1],[0,1]
xyouts,.05,.9,'a line'
plot,[5,10],[5,10]
xyouts,5.1,9,'another line'

That should make two plots with a line of text in each. You do have
to make sure that the xyouts call comes after the plot you want it on,
and before any others. Otherwise it will output to the wrong plot.
I'm not sure why what you're trying isn't working. Maybe I've
misunderstood your problem? Can you give some example code that isn't
cooperating?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: MOD43B3 Col.4 Processing. unexpected error message. why?
Next Topic: storing string array into HDF

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

Current Time: Sun Oct 12 11:55:17 PDT 2025

Total time taken to generate the page: 0.95673 seconds