Cannot get zoom post-callback to work on UIAxes

19 ビュー (過去 30 日間)
meghannmarie
meghannmarie 2020 年 10 月 14 日
コメント済み: meghannmarie 2020 年 10 月 14 日
I cannot get the zoom post-callback to work on UIAxes in app designer. The pre-callback works fine. Here is what I have which is embedded in the app startup function:
h = zoom(app.UIAxes);
h.ActionPreCallback = @myprecallback;
h.ActionPostCallback = @mypostcallback;
h.Enable = 'on';
function myprecallback(obj,evd)
disp('A zoom is about to occur.');
end
function mypostcallback(obj,evd)
disp('A zoom has occurred.');
end
I followed the example in the help and it works of course, but it is not on a UIAxes.
  9 件のコメント
meghannmarie
meghannmarie 2020 年 10 月 14 日
So my whole point of using a post-callback was to prevent user from using zoom to zoom out past my axis limits, and in 2020b it wont let them by default. So didnt neven need to set a post-callback!
meghannmarie
meghannmarie 2020 年 10 月 14 日
I ended up not using it, super buggy. Especially if I customize the toolbar. Pan is also throwing errors.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeVisual Exploration についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by