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

Home » Public Forums » archive » Re: Getting plot coor by clicking on plot??
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Getting plot coor by clicking on plot?? [message #4834] Mon, 07 August 1995 00:00
rep2857 is currently offline  rep2857
Messages: 28
Registered: December 1994
Junior Member
In article <3vtm5g$2b3@lace.colorado.edu>,
Andy Loughe <afl@cdc.noaa.gov> wrote:
> In article <3vtcbk$5ta@deadbird.db.erau.edu>, antarcti@news.db.erau.edu () writes:
> |> I was wondering if it is possible to click on an IDL plot window and
> |> get the plot coordinates for use in the program? Also is it
> |> possible to draw on the plot window and save the line coordinates
> |> in terms of the x and y scale coordinates?
> |>
>
> Look at a routine called cursor.
>

And if you're considering doing this with widgets, look into the
event.x and event.y elements of the event structure.

I'm not sure what's meant in the second part of the original question.
My guess is that you are trying to transform scales. If so, check out
the convert_coord routine and the various switches associated with it.

Mike Schienle Hughes Santa Barbara Research Center
Home: mgs@seldon.terminus.com Work: rep2857@sbsun0010.sbrc.hac.com
Contract Employee - Will visualize data for large amounts of money
Re: Getting plot coor by clicking on plot?? [message #4839 is a reply to message #4834] Fri, 04 August 1995 00:00 Go to previous message
afl is currently offline  afl
Messages: 51
Registered: December 1994
Member
In article <3vtcbk$5ta@deadbird.db.erau.edu>, antarcti@news.db.erau.edu () writes:
|> I was wondering if it is possible to click on an IDL plot window and
|> get the plot coordinates for use in the program? Also is it
|> possible to draw on the plot window and save the line coordinates
|> in terms of the x and y scale coordinates?
|>

Look at a routine called cursor.

--

Andrew F. Loughe email: afl@cdc.noaa.gov
University of Colorado, CIRES voice: (303) 492-0707
Campus Box 449 fax: (303) 497-7013
Boulder, CO 80309-0449 USA
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading data into structs (was (no subject))
Next Topic: IDL's EPS thumbnail image

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

Current Time: Sun Oct 12 02:03:56 PDT 2025

Total time taken to generate the page: 1.43675 seconds