MATLAB: Data cursor doesn’t display the values set with xticklabel

xtick

I do this to change the x axis values but im not sure how to get the Data cursor to display these new values
set(gca, 'XTick', [1:24:dt], 'XTickLabel', [tW+1:24:tW+1+dt]);

Best Answer

That command changes only the values labeling the axes. It does not change the data themselves. The data cursor shows the value of the data themselves.