I would like to move the xtick marks so that they do no appear at the center of a data point but on the boundary between points. That is, if I create a plot using
a = [1,2,3,4,5,6,7,8,9,10]
a = repmat(a,5,1)
I will get a plot of 10 evenly spaced vertical color bars. The default behavior of Matlab is to place the xtick marks at the center of each of the color bars (data points). Thus there will be 10 tick marks (1,2,3,...). I would like to have 11 tick marks (0,1,2...9,10) where the 0 (first mark) appears in at the very start of the plot (ie in line with the y axis) and each following mark will be placed on the boundary between the color bars. If I use XMinorTick on, the minor tick marks do just this but this is not exactly what I want. I want to be able to label the start and end of each of the data points, i.e. the beginning and end of each of the color bars.