Setting the scale of colorbar while plotting heatmap - MATLAB Answers ... heatmap (scale (j)*x (i).data) p =p+1; end In the output figure, the colorbar remains the same for all subplots even if the magnitude of values differ in each case. For instance in subplot (5,2,1) values range from 0 to 1 and in subplot (5,2,2) values range from 0 to 2. However, I see the same color bar for both the subplots.