title: python equivalent code for matlab histogram
body: <p>I am manually trying to convert a matlab code to Python for my application. The Matlab code is this:</p>
  <pre><code>% BUILD HISTOGRAM
  
  % Specify bin centers of the histogram
  bin_c=-0.58:0.04:0.58;
  
  % Three dimensional histogram of bivariate data 
  Z = hist3(dRRnew, {bin_c bin_c});
  
  Z(14,15:16)=0;
  Z(15:16,14:17)=0;
  Z(17,15:16)=0;
  </code></pre>
  <p>Can I get some help in writing in the python equivalent code?</p>
  <p><strong>Edited</strong></p>
  <p>I used the matlab2python tool to convert matlab code to python and the resulting code was as follows:</p>
  <pre><code># BUILD HISTOGRAM
  
  # Specify bin centers of the histogram
  bin_c = np.arange(- 0.58,0.58+0.04,0.04)
  
  # Three dimensional histogram of bivariate data
  Z = hist3(dRRnew,np.array([bin_c,bin_c]))
  
  [X,Y]=meshgrid(-0.58:0.04:0.58, -0.58:0.04:0.58);
  surf(X,Y, Z);
  axis tight
  xlabel('dRR(i-1)')
  ylabel('dRR(i)')
  </code></pre>
  <p>But i checked the matplotlib docs, there is no in-built function hist3.</p>