Set data tips programmatically?
I need to be able to set data tips programmatically from a list of array of x axis values. For example, I create a figure and plot my data. figure;plot(t1,[filter(b,a,Gyro(:,2)),filter(b,a,Gyro(:,4))]) I have a set of timestamp values from t1 variable (time) (e.g. [0.450, 0.854, 1.2343....] ) where I want to place data tips to mark certain events in my data. Without having to place them every time manual by clicking and saving data trip... How can I pass them as array and do this programmatically through matlab script? You can add matlab datatip programatically and customize them to an extent.