Matlab 2d Bar Plot, Then, it shows how to add a legend, display the grid lines, and specify the tick labels.