Re: Getting plot coor by clicking on plot?? [message #4834] |
Mon, 07 August 1995 00:00 |
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  |
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
|
|
|