MATLAB: Do the plots from BAR cover up the y-axis in MATLAB 7.10 (R2010a)

MATLAB

When I execute the following code:
a=rand(15);
anew=a(:);
figure
bar(anew,'g')
b=rand(20);
bnew=b(:);
figure
bar(bnew,'g')
c=rand(30);
cnew=c(:);
figure
bar(cnew,'g')
I notice that on the second BAR plot, the bars cover up the y-axis.

Best Answer

This is a bug in MATLAB 7.10 (R2010a).
To work around the issue, switch from the OpenGL renderer to the zbuffer renderer by executing the following code:
set(gcf,'renderer','zbuffer')