From: Melissa Day on
Getting superscripts into my XTickLabel was a pain, but I did incorporate the program at http://www.mathworks.com/matlabcentral/newsreader/view_thread/163920#416254 and it works pretty well. But I cannot get the tick labels and the x-axis label not to overlap, which is my single complaint. Code is below:

PO = [-0.9830 -7.6926 -18.9661 -30.2674 -38.0853 -41.9464 -39.9194 -37.4144 -34.6583; ...
87.7874 61.2760 41.8826 20.9110 5.0217 1.5841 1.1541 1.1147 1.1094;...
86.8045 53.5834 22.9165 -9.3564 -33.0636 -40.3623 -38.7653 -36.2997 -33.5490]'; %PO is read from txt files but I printed them here for convenience
leg = {'Aerosol','Condensible Gas','Total'};
x9 = {'10^-^2' '10^-^1' '10^0' '10^1' '10^2' '10^3' '10^4' '10^5' '10^6'};

figure; colormap summer;
f = bar(PO,1.0);
set(f(1),'FaceColor','g');
set(f(2),'FaceColor','w');
my_xticklabels(gca,1:1:9,x9,'FontSize',13);
set(gca,'FontSize',13,'XTickLabel','')
xlabel('(C^*) (\mug/m^3)','FontSize', 16)
ylabel('Average concentration, \mug m^-^3','FontSize', 16)
legend(leg,'Location','NorthEast')
title(['Fresh POA Comparison for ',code],'Interpreter','none')
set(gcf,'Color',[1,1,1])

Replacing the xlabel with text(5,-65,'(C^*) (\mug/m^3)','FontSize', 15,'HorizontalAlignment','center') works kind of okay, but I would rather not have to manually re-size the plot window. I was wondering if there was some way to retain the axis sizing that accounts for the original xticks in the my_xticklabels positioning section. I'm not quite good enough at Matlab to make this happen successfully, it seems. If this is not possible I will just make do. Thanks.
From: us on
"Melissa Day" <mdaylite.remove.this(a)gmail.com> wrote in message <i29p7j$95u$1(a)fred.mathworks.com>...
> Getting superscripts into my XTickLabel was a pain, but I did incorporate the program at http://www.mathworks.com/matlabcentral/newsreader/view_thread/163920#416254 and it works pretty well. But I cannot get the tick labels and the x-axis label not to overlap, which is my single complaint. Code is below:
>
> PO = [-0.9830 -7.6926 -18.9661 -30.2674 -38.0853 -41.9464 -39.9194 -37.4144 -34.6583; ...
> 87.7874 61.2760 41.8826 20.9110 5.0217 1.5841 1.1541 1.1147 1.1094;...
> 86.8045 53.5834 22.9165 -9.3564 -33.0636 -40.3623 -38.7653 -36.2997 -33.5490]'; %PO is read from txt files but I printed them here for convenience
> leg = {'Aerosol','Condensible Gas','Total'};
> x9 = {'10^-^2' '10^-^1' '10^0' '10^1' '10^2' '10^3' '10^4' '10^5' '10^6'};
>
> figure; colormap summer;
> f = bar(PO,1.0);
> set(f(1),'FaceColor','g');
> set(f(2),'FaceColor','w');
> my_xticklabels(gca,1:1:9,x9,'FontSize',13);

CSSMers don't have this function...
sorry...

us
From: Melissa Day on
"us " <us(a)neurol.unizh.ch> wrote in message <i29v1p$nnu$1(a)fred.mathworks.com>...
> "Melissa Day" <mdaylite.remove.this(a)gmail.com> wrote in message <i29p7j$95u$1(a)fred.mathworks.com>...
> > my_xticklabels(gca,1:1:9,x9,'FontSize',13);
>
> CSSMers don't have this function...
> sorry...
>
> us

The my_ticklabels function comes from the link I included above.