I want to create a plot which has listeners to every item which is plotted. What I actually want to do is to create a 3D quiver plot, and whenever I click on the head of the arrow, I want to create another plot based on the ID of the arrow clicked.
Is this possible in Matlab?
I am open to exploring other options (which are easy to implement) in other programming languages.
Graphics handle objects have callbacks that you can use for this kind of thing.
You can also set the
'UserData'property of each graphics handle object, in your case to give it an ID.Combine these two concepts to create the functionality that you want: