Re: possible to find position vector immediately after plot? [message #59856] |
Wed, 16 April 2008 12:26 |
astroboy2k
Messages: 34 Registered: July 2007
|
Member |
|
|
On Apr 16, 3:13 pm, Vince Hradil <hrad...@yahoo.com> wrote:
> Mark wrote:
>> Greetings IDL comrades!
>
>> I imagine I'm overlooking something simple here, but I need to find
>> the position of a plot after (or before) its been made; something
>> along these lines:
>
>> !p.multi=[0,2,2]
>> plot, findgen(10)
>
>> now, what is the position vector (e.g., something like: [.
>> 1,.45,.45,.9] ) for this first frame? or for the second, etc.
>
>> I've tried print,!p.position, which gives [0,0,0,0], which doesn't
>> help me at all.
>
>> It seems like it would be possible that once you've specified !p.multi
>> you should be able to find out what the position of the plot frames
>> are, but I've had no luck figuring out how to do this after a long
>> time wandering in the IDL documentation wilderness.
>
>> Thanks very much,
>
>> Mark
>
> Check out !x and !y structures - andhttp://www.dfanning.com/tips/oplot_pmulti.html
Oh, duh. Thanx!
|
|
|
Re: possible to find position vector immediately after plot? [message #59857 is a reply to message #59856] |
Wed, 16 April 2008 12:13  |
Vince Hradil
Messages: 574 Registered: December 1999
|
Senior Member |
|
|
Mark wrote:
> Greetings IDL comrades!
>
> I imagine I'm overlooking something simple here, but I need to find
> the position of a plot after (or before) its been made; something
> along these lines:
>
> !p.multi=[0,2,2]
> plot, findgen(10)
>
> now, what is the position vector (e.g., something like: [.
> 1,.45,.45,.9] ) for this first frame? or for the second, etc.
>
> I've tried print,!p.position, which gives [0,0,0,0], which doesn't
> help me at all.
>
>
> It seems like it would be possible that once you've specified !p.multi
> you should be able to find out what the position of the plot frames
> are, but I've had no luck figuring out how to do this after a long
> time wandering in the IDL documentation wilderness.
>
> Thanks very much,
>
> Mark
Check out !x and !y structures - and http://www.dfanning.com/tips/oplot_pmulti.html
|
|
|