MATLAB Answers

get zoom status of a UIAxes

5 views (last 30 days)
craq on 27 Jul 2018
For a figure axes, I can find out whether zoom is active or not by doing:
h = zoom(gca);
get(h,'Enable') %off
zoom(gca,'on') %start zoom mode
get(h,'Enable') %on
but the equivalent with a UIAxes doesn't seem to work:
>> h = zoom(app.UIAxes)
Error using matlab.ui.control.UIAxes/zoom
Too many output arguments.
How can I find out whether zoom is active on my UIAxes?


Sign in to comment.

Answers (0)

Translated by