From: Nick Stokes on 14 May 2010 11:30 "someone" <someone(a)somewhere.net> wrote in message <hsf2v9$r3v$1(a)fred.mathworks.com>... > > > > thanks, this is interesting stuff. But seriously, that is not the answer -- and probably will not work optimally in general, e.g. in my case, which is to create an interactive plot interface via hovering over the figure sort-of-thing. -- We don't want to click or simulate a click. Actually we don't even want to update the CurrentObject of the figure. > > And I want world peace. I am having hard time understanding why this is creating such sarcastic awe. As Walter was saying earlier, if MATLAB can determine what object is being clicked, there must be a lower-level functionality that it might be using in doing this. Fwiw, let me show an example of an interactive visualization where such functionality would be essential: http://www.nytimes.com/interactive/2008/10/11/business/20081011_BEAR_MARKETS.html
From: Doug Schwarz on 14 May 2010 11:53 In article <hsjqae$eg$1(a)fred.mathworks.com>, "Nick Stokes" <nickstokes5(a)gmail.com> wrote: > "someone" <someone(a)somewhere.net> wrote in message > <hsf2v9$r3v$1(a)fred.mathworks.com>... > > > > > > > thanks, this is interesting stuff. But seriously, that is not the answer > > > -- and probably will not work optimally in general, e.g. in my case, > > > which is to create an interactive plot interface via hovering over the > > > figure sort-of-thing. -- We don't want to click or simulate a click. > > > Actually we don't even want to update the CurrentObject of the figure. > > > > And I want world peace. > > I am having hard time understanding why this is creating such sarcastic awe. > As Walter was saying earlier, if MATLAB can determine what object is being > clicked, there must be a lower-level functionality that it might be using in > doing this. > > Fwiw, let me show an example of an interactive visualization where such > functionality would be essential: > > http://www.nytimes.com/interactive/2008/10/11/business/20081011_BEAR_MARKETS.h > tml Perhaps you can modify overobj.m to do what you want. -- Doug Schwarz dmschwarz&ieee,org Make obvious changes to get real email address.
From: us on 14 May 2010 12:43 "Nick Stokes" <nickstokes5(a)gmail.com> wrote in message <hsjqae$eg$1(a)fred.mathworks.com>... > "someone" <someone(a)somewhere.net> wrote in message <hsf2v9$r3v$1(a)fred.mathworks.com>... > > > > > > > thanks, this is interesting stuff. But seriously, that is not the answer -- and probably will not work optimally in general, e.g. in my case, which is to create an interactive plot interface via hovering over the figure sort-of-thing. -- We don't want to click or simulate a click. Actually we don't even want to update the CurrentObject of the figure. > > > > And I want world peace. > > I am having hard time understanding why this is creating such sarcastic awe. As Walter was saying earlier, if MATLAB can determine what object is being clicked, there must be a lower-level functionality that it might be using in doing this. > > Fwiw, let me show an example of an interactive visualization where such functionality would be essential: > > http://www.nytimes.com/interactive/2008/10/11/business/20081011_BEAR_MARKETS.html well... firstly, some replies have NOT been sarcastic at all... second, NOW things seem more clear as you explain them in better MLbbers terms, because the way you first phrased it, CSSMers got the impression that you don't want to use the mouse AT ALL... to achieve the above demonstrated functionality, look at this callbacks set(gcf,'windowbuttonmotionfcn',@your_callback); % eg, plot(1:10); fh=@(varargin) disp(sprintf('%d %d',get(gcf,'currentpoint'))); set(gcf,'windowbuttonmotionfcn',fh); % now, move your mouse and look at the command window... % your callback would be more intelligent, of course... us
From: Jan Simon on 14 May 2010 12:49 Dear Doug! > Perhaps you can modify overobj.m to do what you want. How can I get the screen coordinates for docked figures? Jan
From: us on 14 May 2010 13:08
"Jan Simon" <matlab.THIS_YEAR(a)nMINUSsimon.de> wrote in message <hsjuu0$4o3$1(a)fred.mathworks.com>... > Dear Doug! > > > Perhaps you can modify overobj.m to do what you want. > > How can I get the screen coordinates for docked figures? > > Jan jan my snippet (see above) works for docked figs as well... urs |