title: Display the colorbar in heatmap MATLAB
body: <p>I'm creating the following heatmap:</p>
  
  <pre><code>h = HeatMap(CorrelationsMV, 'RowLabels', labels, 'ColumnLabels', labels, 'Colormap', map);
  colorbar;
  caxis([-1, 1]);
  </code></pre>
  
  <p>And for some reason, the colorbar is displayed in a second, empty heatmap :<a href="https://i.stack.imgur.com/6EKyi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6EKyi.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/6yFxg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6yFxg.png" alt="enter image description here"></a></p>
  
  <p>While what I need is simply that: (that I can do manually through the GUI, but I need it to be automated)
  <a href="https://i.stack.imgur.com/slYHY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/slYHY.png" alt="enter image description here"></a></p>