Custom Data Cursor in App Builder

Is it possible to make a custom data cursor function in the app builder? I've tried to do it with:
dcm_obj = datacursormode(app.UIAxes)
but that just threw an error instead. Is it even possible to do this in app builder right now?

回答 (1 件)

Warren
Warren 2019 年 9 月 13 日
編集済み: Warren 2019 年 9 月 13 日

0 投票

It have gotten it to work but not to create a custom data tip function. Ii also looks like you are passing it the axes handle not the figure handle. The below code works but when I click my axes to get a custom data tip using myupdatefcn I get "Unable to Update data tip using custom update function".
dcm_obj=datacursormode(app.figHandle);
dcm_obj.Enable='On';
dcm_obj.UpdateFcn=@myupdatefcn;

カテゴリ

ヘルプ センター および File ExchangeDevelop Apps Using App Designer についてさらに検索

製品

リリース

R2019a

質問済み:

2019 年 8 月 2 日

編集済み:

2019 年 9 月 13 日

Community Treasure Hunt

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

Start Hunting!

Translated by