Not a bug.
From the table of uiaxes properties in the documentation, specifically the entry for XTickLabel / YTickLabel / ZTickLabel, "Tick labels, specified as a cell array of character vectors, string array, or categorical array. If you do not want tick labels to show, then specify an empty cell array {}. If you do not specify enough labels for all the ticks values, then the labels repeat." The same note appears in the the documentation for axes properties as well so I'll use a plain old axes for this example. ax = axes;
set(ax, 'YTick', 0:0.25:1)
set(ax, 'YTickLabel', ["1"; "2"])
5 tick locations and 2 tick labels means the first tick gets the first label, the second tick the second label, the third tick the first label again, etc.
Best Answer