I implemented this using iptSetPointerBehavior. The datatips corresponding to each scatter3 object are created and stored. The helper function for pb.enterFcn then sets which datatips are enabled according to which axes is being moused over.
create custom mouseover callback?
10 views (last 30 days)
I have a method to execute a custom callback function upon mouseover of scatter3 plotted points. Essentially, the function prints text in a text edit field of my app. This method relies on setting the UpdateFcn of the datacursormode for the entire figure. Now I would like to have two different axes in my figure, so that method won't work anymore. How can I create a custom callback for a mouseover interaction?