how to restrict datacursormode in gui to be active only in one axis.
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Dimani4
am 22 Mär. 2020
Bearbeitet: Dimani4
am 24 Mär. 2020
Hi people.
Hope you are feeling well with all that situation. I did some gui with two axes. In one I present the image and in another one the graphs from that image. I need datacursormode will move and be active only in the axes with image, because right now the datacursormode is active also in the axes with graphs which is not good for my situation (actually it's active in the whole figure).
Thank you very much.
0 Kommentare
Akzeptierte Antwort
Adam Danz
am 22 Mär. 2020
Bearbeitet: Adam Danz
am 23 Mär. 2020
A workaround to controlling datacursormode for specific axes is to turn off the handle visibility for the axes that should not have datacursor capabilities.
Note that this may affect other functions in your gui that depend on handle visibility so it should be tested thoroughly.
set(axisHandle,'HandleVisibility','Off')
0 Kommentare
Weitere Antworten (1)
Siehe auch
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!