I have a plot with a callback function 'buttonDownFcn' that applies the area function to plot a tranparent square on top of the data. I don't want my callback function to run if any of the default state buttons are pressed.
How to get the state of the default buttons of the axestoolbar in UIAxes?
Another workaround is to create an extra button that, when enabled, enables the callback function. But unfortunately I still need set the state of the other default buttons to 0 if the have been pressed previously, otherwise they will interfear with my callback function.
I have just upgraded to R2020b where Mathworks have added more supported features to UIAxes when comparing to R2019b, but I know that there still are some limitations and not supported features in UIAxes, e.g. buttons and availabe callback functions...
So maybe it is not yet possible to "read" the button state values of the axestoolbar in UIAxes?
Any help is apriciated!