MATLAB Answers

Putting arrows on a graph line matlab

1 view (last 30 days)
Mohammed Magdy Sharara
Mohammed Magdy Sharara on 28 Apr 2020
Edited: Adam Danz on 29 Apr 2020
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**
**My Gui looks like this**

  0 Comments

Sign in to comment.

Answers (1)

Adam Danz
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

Show 1 older comment
Adam Danz
Adam Danz on 28 Apr 2020
Now I see there is more than 1 type of arrow in your image. The quesiton could have been clearer. I thought you were refering to the e=0.3 arrow.
Mohammed Magdy Sharara
Mohammed Magdy Sharara on 28 Apr 2020
No i mean the arrows in each transfer orbit
Adam Danz
Adam Danz on 28 Apr 2020
See the updated part of my answer. Matlab doesn't have a builtin method of drawing arrows along a line but there are several function on the exchange that do something like that.

Sign in to comment.


Translated by