August 21st, 2008, 6:39 pm
yes, i'll send the code next, don't have it right now.to answer your question >>>>i have a GUI containing an axes.i plot to this axes and i want to get the coordinates of specific points in my plot by using a data cursor.>>>>with free-standing figures, there is no problem.you go to the tool bar, click on the icon that activates the data cursor, then click at points on the plot.however, when i do this in my GUI, the GUI misbehaves:as long as the data cursor is activated, the GUI closes in response to any key press except control/shift/alt.and when this happens, the GUI closes without even going through the DeleteFcn callback.i want to find out what's causing this behavior and suppress it.by the way, at GUI creation, i use set(handles.figure,'KeyPressFcn',...) to set the key press behavior of the GUI.so my initial response to the problem was to set this callback again, after the data cursor has been activated.however, matlab won't allow this at this point.it complains that set(handles.figure,'KeyPressFcn',...) cannot be used because the data cursor mode is on.
Last edited by
ana3a on August 20th, 2008, 10:00 pm, edited 1 time in total.