Dynamically alter datatip behavior
1 次查看(过去 30 天)
显示 更早的评论
I have a GUI containing an image axis and some radio buttons. I want the behavior/appearance of new figure datatips introduced into the image window to be determined based on the state of the radio buttons.
When a different radio button is selected, I update the datacursormode object's UpdateFcn. However, I find that it doesn't take effect on how new datatips look if there are prior data tips already present in the figure. After I delete the prior datatips manually, the new UpdateFcn does kick in and things work fine. Why is this necessary?
Also, if it's absolutely necessary to delete all prior data tips to make this work, how do I do so programmatically?
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!