GUI AXES Object detecting
Ältere Kommentare anzeigen
Hi,
I'm developing a GUI code which use an Axes to plot the results, my results are Lines, I was wondering to know if there is any way to access to objects by mouse? I want to add a menu which shows the property of the line like thickness and color which is different for each line. I need to know if I can access to the objects Tag by right click on it and then show the proper data in the menu?
Thanks
Antworten (1)
Doug Hull
am 29 Mär. 2013
0 Stimmen
2 Kommentare
Ali
am 1 Apr. 2013
Walter Roberson
am 1 Apr. 2013
set() the Callback on the lines to be appropriate, possibly the same as the Callback for the axes, possibly different.
Alternately, set() Hittest 'off' on the lines so that clicking on them activates the axes callback.
Alternately, only set the Callback for the lines and not for the axes.
Kategorien
Mehr zu Graphics Object Properties finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!