From: Dave on 30 Jul 2010 14:11 I have a GUI with several axes...I want to update the plot on axes2 as a result of clicking the cursor on axes1. I've tried calling a plotting function from within the UpdateFcn for axes1 but it causes some weird behavior (the datatip shows an error, gets locked in "move" mode like the mouse button is held down, and an extra figure window pops up) with a copy of axes2. Any ideas on how I can cause a cursor click on axes1 to effect a change on axes2?
From: Dave on 30 Jul 2010 14:27 "Dave " <dkraige(a)kcftech.com> wrote in message <i2v4jo$n3o$1(a)fred.mathworks.com>... > I have a GUI with several axes...I want to update the plot on axes2 as a result of clicking the cursor on axes1. I've tried calling a plotting function from within the UpdateFcn for axes1 but it causes some weird behavior (the datatip shows an error, gets locked in "move" mode like the mouse button is held down, and an extra figure window pops up) with a copy of axes2. > > Any ideas on how I can cause a cursor click on axes1 to effect a change on axes2? To clarify, I mean the actual cursor tool, not the mouse button, so I don't think the ButtonDownFunction will work... I want to click a point on the graph on axes1 using the cursor tool, and then do some things based on what particular data point is clicked.
From: Walter Roberson on 30 Jul 2010 14:23 Dave wrote: > I have a GUI with several axes...I want to update the plot on axes2 as a > result of clicking the cursor on axes1. I've tried calling a plotting > function from within the UpdateFcn for axes1 but it causes some weird > behavior (the datatip shows an error, gets locked in "move" mode like > the mouse button is held down, and an extra figure window pops up) with > a copy of axes2. > > Any ideas on how I can cause a cursor click on axes1 to effect a change > on axes2? ButtondownFcn callback of axes1 ? Note that that callback would not normally fire when the cursor is positioned over a graphics object within the axes. The HitTest property of the contained objects would have to be off.
|
Pages: 1 Prev: hi i have a question Next: Disable cursor on certain axes |