MATLAB: How to put the real numbers on the y axis of a bar chart without an exponent

bar charty axis

Hello!
I want to set the real numbers on the y axis without using an exponent. Ax.Yaxis.Exponent = 0 does not seem to work for my bar chart. Is there a difference between a normal plot and a bar chart?
Thanks

Best Answer

A simple typo: you should have written YAxis
testvalues=[10000 12340 32100 42190];
figure(1),clf(1)
subplot(1,2,1)
bar(testvalues)
subplot(1,2,2)
bar(testvalues)
Ax=gca;
Ax.YAxis.Exponent = 0;
Related Question