F=figure;
hs= superbar(a,'E',asem,'ErrorbarStyle', 'T');
hold on
ax=gca;
ax_detail=get(gca);
ahandle=get(gca,'Children');
Line1=ahandle(1,1);
Line1.Color= 'k';
Line2=ahandle(2,1);
Line2.Color=C(2,:);
Line2.Color='k';
Bar1=ahandle(3,1);
Bar1.EdgeColor= 'k';
Bar1.FaceColor= 'none';
Bar2=ahandle(4,1);
Bar2.EdgeColor= 'k';
Bar2.FaceColor= 'none';
ax.XLim=[0.4000 2.6000];
Bar1.BarWidth=0.8;
Bar2.BarWidth=0.8;
set(gca,'FontSize',20,'FontName','Arial')
set(gca,'Box','off')
set(gca,'LineWidth',2);
set(gca, 'XTick',[1 2 ])
set(gca,'XTickLabel',{labels{1,1},labels{2,1}})
title(sprintf('%s %s',strain,structure),'FontWeight','normal','FontSize',20,'FontName','Arial')
ylabel(sprintf('z-normalised power\n %s (%d-%dHz)',fband_name{1,band},fband{band}(1,1),fband{band}(1,2)),'FontSize',20,'FontName','Arial');
ax1=get(Bar1,'XData');
ax2=get(Bar2,'XData');
for i=1:length(data2_nor_mean_band)
bp2(i,1)=plot(ax1(1,1) - (0.01*i),data2_nor_mean_band(band,i),'ro','Color','r','MarkerSize',6,'MarkerFaceColor','r');
hold on
end
for i=1:length(data1_nor_mean_band)
bp1(i,1)=plot(ax2(1,1)- (0.01*i),data1_nor_mean_band(band,i),'ko','Color','b','MarkerSize',6,'MarkerFaceColor','b');
hold on
end
if expmeasure==1
if h1==0 & h2==0
pvalplot=text(1.1, max(Line1.YData)*1.2,sprintf('p = %0.3f',P),'FontName','Arial','FontSize',20);
else
pvalplot=text(1.1, max(Line1.YData)*1.2,sprintf('p = %0.3f',H),'FontName','Arial','FontSize',20);
end
end
if expmeasure==2
if h1==0 & h2==0
pvalplot=text(1.1, max(Line1.YData)*1.2,sprintf('p = %0.3f',P),'FontName','Arial','FontSize',20);
else
pvalplot=text(1.1, max(Line1.YData)*1.2,sprintf('p = %0.3f',P),'FontName','Arial','FontSize',20);
end
end