Putting arrows on a graph line matlab
222 views (last 30 days)
Show older comments
Hello Folks, So i am trying to add arrows and bubble numbers that contain the number of the orbit in my matlab figure
**like this i am using Gui in my matlab i have tried many times but it doesn't work**
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288300/image.png)
**My Gui looks like this**
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/288301/image.png)
0 Comments
Answers (1)
Adam Danz
on 28 Apr 2020
Edited: Adam Danz
on 28 Apr 2020
Arrows can be added with annotation but it's an incredibly clumsy process since you have to specify the arrow coordinates in normalized coordinates rather than data coordinates. You could also use quiver which allows you to use data units.
Since your arcs are colored, why not just use a legend?
Update:
To plot a line object with arrows, try one of the files on the file exchange. Here's a good example:
4 Comments
See Also
Categories
Find more on Labels and Annotations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!