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

Home » Public Forums » archive » question on exactly when !p.position is defined
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: question on exactly when !p.position is defined [message #85218 is a reply to message #85217] Mon, 15 July 2013 14:41 Go to previous message
astroboy.20000 is currently offline  astroboy.20000
Messages: 39
Registered: August 2012
Member
On Monday, July 15, 2013 5:37:45 PM UTC-4, David Fanning wrote:
> astroboy.20000@gmail.com writes:
>
>
>
>> Of course, I've used the position and !p.position variables to locate a plot on a page, so at least I understand how things work in that application.
>
>>
>
>> However, I guess I'm just not clear on how to obtain the position coordinates of a plot just made....
>
>
>
> Unfortunately, unless you use, for example, cgLayout, you have to do
>
> this after the fact. First, draw the plot:
>
>
>
> cgPlot, ....
>
>
>
> Then, capture the position of the plot:
>
>
>
> plotPosition = [!X.Window[0], !Y.Window[0], $
>
> !X.Window[1], !X.Window[1]]
>
>
>
> Cheers,
>
>
>
> David
>
>
>
>
>
>
>
> --
>
> David Fanning, Ph.D.
>
> Fanning Software Consulting, Inc.
>
> Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
>
> Sepore ma de ni thue. ("Perhaps thou speakest truth.")

Thanks very much David, I can certainly do that (although it's a bit of a pain, but that's why programmers are paid such enormous salaries!)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Name and favourite colour
Next Topic: fill_background in TEXT reference does not work

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

Current Time: Fri Oct 10 10:19:31 PDT 2025

Total time taken to generate the page: 0.56256 seconds