From: Wendy on
I want to annotate my bars with the corresponding experimental conditions, far example, I have three samples on the same day for 4 days. I put the sample number on the x-axis. Can I label the date above each bar? Does anybody know any function file doing that?

Thank you.
Wendy
From: us on
"Wendy " <wlq121(a)gmail.com> wrote in message <hhve6c$aq6$1(a)fred.mathworks.com>...
> I want to annotate my bars with the corresponding experimental conditions, far example, I have three samples on the same day for 4 days. I put the sample number on the x-axis. Can I label the date above each bar? Does anybody know any function file doing that?
>
> Thank you.
> Wendy

one of the many solutions

x=rand(1,3);
xd={'jun','jul','aug'};
nx=numel(x);
bar(x);
set(gca,'ylim',[0,1.2],'xticklabel',xd);
text(1:nx,repmat(1.1,1,nx),xd,...
'horizontalalignment','center',...
'fontsize',12,...
'fontweight','bold');

us