Selelcting Points in a plot embedded in a GUI
1 次查看(过去 30 天)
显示 更早的评论
Typically when you produce a plot, it creates a separate window with the toolbar menu. If one selects tools -> Data cursor, it allows the user to select points on your plot.
However, when you do this in a GUI application, the toolbar menu doesn't appear and hence does not provide the option to the user to select points a graph. I want to be able to do this. So far I have a plot embedded in a GUI.
0 个评论
采纳的回答
Shashank Prasanna
2013-1-17
In GUIDE, go to tools -> Toolbar Editor and add Data cursor mode. If its a regular gui or plot you can always use >> datacursormode In a programmatic gui you can set the menu bar and toolbar using figure properties:
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!