keypress callback in figure

2 Ansichten (letzte 30 Tage)
pascal plisson
pascal plisson am 22 Aug. 2018
Beantwortet: Rik am 22 Aug. 2018
I have written a callback for capturing some keyboard press inside a figure and performing some actions on my plot. This callback works fine except when one of the togglebutton of the figure tool toolbar is selected (for instance Pan).
How can I have my callback also working when these togglebuttons are on ?

Akzeptierte Antwort

Rik
Rik am 22 Aug. 2018
As far as I know you can't. Interactive tools like pan and rotate3d block most of the callbacks (you can't even set them when those modes are active). The only 'solution' would be to not have those tools active.

Weitere Antworten (0)

Kategorien

Mehr zu Interactive Control and Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by