How to update a Custom Datatip for a GUI figure ?
9 ビュー (過去 30 日間)
古いコメントを表示
I am trying to figure out how to update a custom datatip. The process is straight forward if it was for a regular plot however, when using a GUI figure it seems like that callback function does not update. I tried adding the following lines of code to the existing Callback function but was not successful.
dcm_obj= datacursormode (gcf);
datacursormode on
set (dcm_obj,'updatefcn',@myfunction)
where myfunction is the custom function that I am using to customize the font/color etc...
I would apperciate any suggestions.
Thanks in advance.
2 件のコメント
Murugan C
2021 年 9 月 6 日
do you want to show data point dynamically whenever mouse click happend on graph?
採用された回答
Walter Roberson
2021 年 9 月 12 日
The update function callback is only applied to new datatips, or datatips that are moved. (I am not certain at the moment whether it is called if the axes resizes.)
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Creating, Deleting, and Querying Graphics Objects についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!