UIAxes' YLim property cannot be listened to
MATLAB provides the addlistener function. Listeners allow us to keep track of changes of an object's properties and act upon them. For example, we can create a very simple listener that will display a message in the command window when the 'YLim' property of an axes object is changed: % Example using axes ax = axes(); addlistener(ax, 'YLim', 'PostSet', @(src, evnt)disp('YLim changed')); Try panning the axes or zooming in/out and see what happens. This works fine. I need to do the same but using an uiaxes instead. Unfortunately, it looks like we are not allowed to do so. Try running the