On Jul 16, 2008, at 2:35 AM, Paul Harris wrote: > *crosspost to get more detailed info* > > 2008/7/16 Alan W. Irwin <[EMAIL PROTECTED]>: >> >> The core of PLplot supports interactive capability for those drivers >> that have it implemented. >> >> Our xwin device has interactive capability where you can display >> cross-hairs, move them around, and when a key is clicked, deliver the >> position of the crosshairs and the identity of the key which was >> clicked. >> To see this capability in action try the -locate option for C >> example 1 with >> -dev xwin. -dev wxwidgets has similar capability, although I >> could only get >> the return key to work at this time. I think there is a plan to >> implement >> at >> least the level of xwin capability in the xcairo device. For >> example, you >> get some hits when you grep for "cross" in the cairo code. >> However, I >> couldn't get it to work (no crosshairs were displayed with example >> 1 when >> the -locate option was used.) >> >> Anyhow, you could use these interactive capabilities for a start for >> doing something more interesting. You may want to work with -dev >> wxwidgets >> or -dev xcairo since both have modern font capabilities while xwin >> does >> not. >> > > > Thanks Alan, I gave that a try, but its not going to give me the key > information that I'm interested in. > > So I'll expand my question for the devel list, hopefully someone has > the know-how... > > Is there some way of being able to tell what element of a plot was > clicked, given a coordinate of a click (it could be a data, window > or global coordinate - whatever is required to get the job done)
PLplot does not support this. You'd have to keep a record of where all the elements were and then look up which element was clicked on based on the coordinates of the click. -Hazen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel