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

Home » Public Forums » archive » Re: IDL data coordinates in a widget
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: IDL data coordinates in a widget [message #28729] Wed, 09 January 2002 11:24 Go to previous message
Ben Tupper is currently offline  Ben Tupper
Messages: 186
Registered: August 1999
Senior Member
"Juan I. Cicuendez" wrote:

> Hi,
>
> Can anyone help me with this?
> I am trying to set up an interactive widget that provides the data
> value corresponding to a plot on a widget_draw pannel. I am stuck as I
> can't manage to obtain the right data coordinates of the system.
> First I was using a multiple plot, and from the motion_event obtaining
> x,y coordinates on the draw pannel. This seem to work fine and I
> obtain the device coordinates, but when I try to use
> data=CONVERT_COORD(x,y,/DEVICE, /TO_DATA)
> the output I get does not make any sense and does not match my data
> (some of them are negative values). I thought that this could be an
> interference when using a multiple plot so I tried to decompose my
> whole plot into individual ones (tedious way) and apply this described
> method individually and still does not work and even though the values
> are better, for fixed x intervals in the plot the calculated x length
> varies.
>
>

Hi,

In addition to David's suggestions, you might try the frame management
tools that I recently modeled after Liam Gumley's frame tools. They are
easy to use and despite being object based, they are quite straight
forward for the end user. You can picture each sub-plot as a frame
within the draw widget. The is an example routine using multiple plots
interactively. You can get my frame tools here
(www.tidewater.net/~pemaquid) or Liam's original set of tools here
(www.gumley.com).

Ben


--
Ben Tupper
248 Lower Round Pond Road
POB 106
Bristol, ME 04539

Tel: (207) 563-1048
Email: PemaquidRiver@tidewater.net
[Message index]
 
Read Message
Read Message
Previous Topic: Re: splitting difficult(?) strings
Next Topic: Re: Sacrilegious but genuine question

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

Current Time: Wed Oct 08 15:34:52 PDT 2025

Total time taken to generate the page: 0.00392 seconds