When I execute the following code:

`a=rand(15);anew=a(:);figurebar(anew,'g')b=rand(20);bnew=b(:);figurebar(bnew,'g')c=rand(30);cnew=c(:);figurebar(cnew,'g')`

I notice that on the second BAR plot, the bars cover up the y-axis.

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

###### Related Question

MATLAB

When I execute the following code:

`a=rand(15);anew=a(:);figurebar(anew,'g')b=rand(20);bnew=b(:);figurebar(bnew,'g')c=rand(30);cnew=c(:);figurebar(cnew,'g')`

I notice that on the second BAR plot, the bars cover up the y-axis.

- Does the marker size not change for multiple points plotted with SCATTER3 for MATLAB 7.1 SP3
- Does the documentation example for WINOPEN produce an error in MATLAB 7.10 (R2010a)
- Does the SEMILOGY function not plot onto a logarithmic scale in MATLAB 6.5 (R13)
- How to use Microsoft Visual C++ 2010 to create MEX files with MATLAB 7.10 (R2010a)
- Does the command syntax of XLSWRITE write the variable name to the Excel file with MATLAB 7.10 (R2010a)
- Does the backgound generated using PCOLOR disappear when overlaying it with a contour plot in MATLAB 7.3 (R2006b)
- How to add labels to the tree produced by the TREEPLOT function in MATLAB 7.10 (R2010a)
- XTick labels for bar plot of 2 data sets
- Is it possible to clear MATLAB and JAVA class definitions without clearing function and MEX files from the workspace in MATLAB 7.10 (R2010a)

## Best Answer