title: Plot numpy.histogram2d()
body: <p>I am wondering if it is maybe possible to plot the output of numpy.histogram2d() using matplotlib.pyplot.hist2d? In the one-dimensional case, this can be done by using:</p>
  
  <pre><code>counts, bins = np.histogram(something, bins=no_bins, range=(range_min, range_max))
  
  plt.hist(bins[:-1], bins, weights=counts)
  </code></pre>
  
  <p>Is there a similar solution for the two-dimensional case? I do not want to plot the 2d histo with the methods suggested on <a href="https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html" rel="nofollow noreferrer">https://docs.scipy.org/doc/numpy/reference/generated/numpy.histogram2d.html</a>
  The idea behind this is that I would like to apply some corrections to the inital histogram (i.e. bin-by-bin background subtraction using data from another 2d histogram) and then plot the corrected histogram.</p>
  
  <p>Many thanks in advance!</p>