title: MATLAB contour plot of 2D scatter
body: <p>What I want to do is very simple, I just cannot seem to get MATLAB to do it. I would like to plot contours using my 2D data set.</p>
  
  <p>My data set is large; 2 x 844240. I can do a scatter plot just fine,</p>
  
  <pre><code>scatter(Data(1,:), Data(2,:));
  </code></pre>
  
  <p>Reading through the forums I found <a href="https://stackoverflow.com/questions/21006490/scatter-plot-with-density-in-matlab">Scatter plot with density in Matlab</a>, where a hisogram was plotted. This would suffice, however, I would like to overlay the plots.</p>
  
  <p><img src="https://i.stack.imgur.com/f9FhD.png" alt="enter image description here"></p>
  
  <p>The issue is that they have different axis, my scatter data has an axis of [0 0.01 0 2500]; whereas the histogram is [0 100 0 100].</p>
  
  <p>Is there a way to change the axis values of the histogram without modifying the image?</p>
  
  <p>Thanks!</p>