Maybe the option to change the baseValue
property in the bar plot came out only in a later version of Matlab (what version do you have?), But the following works for me:
%# create bar plot with horizontal line at 3 bar(randn(4),'baseValue',1) %# rename x-tick labels set(gca,'xticklabel',{'first','second','third'})
Jonas source share