How to draw a "personal" arrow in a axes (GUI)?
6 次查看(过去 30 天)
显示 更早的评论
hello, I am doing a GUI with an axes and several buttons, and i have to be able to draw a few kinds of arrows. By now, if have found out the function: annotation('arrow'...), The problem I have with this function is that I want the arrow to be only inside the axes, not everywhere, so I'm wondering if there is a way do it.
Furthermore I'd like to draw my own arrow, the one shown in the following picture (or similar...)
0 个评论
回答(1 个)
Jan
2014-10-20
You can use the plot() or line() commands to draw whatever you want.
Did you search for "arrow" in the FileExchange already?
2 个评论
Jan
2014-10-21
You can define the coordinates by a function or manually. You can draw the array with a graphics program and import it as image.
Again: Did you search in the FileExchange already? You find dozens of implementations for drawing arrows there. Looking in the code will reveal different possible methods.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Annotations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!