Interactive rectangle on UIAxes for user to choose a region
7 views (last 30 days)
Biraj Khanal on 27 May 2022
I have a dataset with scattered points that I plot on a UIAxes. The idea is to let the user draw a rectangle over the UI Axes only ( not the whole figure) and select a region so that it can be processed further.
f = app.UIFigure;
f.Units = 'normalized';
pos = rbbox;
The code above is what I tried. The first problem that i see is that waitforbuttonpress opens a new figure and does not operate on the app figure or the axes. What should be the way to get this working?