title: Python 3D histogram
body: <p>I have X, Y, Z data and I want to make a picture out of it where the colour represents the value of z (interval average value of Z).</p>
  
  <p>So far I can make a colorfull 2D histogram using the X, Y data (the colour is the X, Y occurrency frequency)</p>
  
  <pre><code>import matplotlib.pyplot as plt
  plt.hist2d(x, y, bins=(10,10))
  </code></pre>
  
  <p>Is there a python function to do what I need at once?</p>
  
  <p><img src="https://i.stack.imgur.com/TnRYx.png" alt="2d histogram, the colour representas the frequency of X, Y values in the interval"></p>