title: How to make a heatmap in python with aggregated/summarized data?
body: <p>I'm trying to plot some X and Z coordinates on an image to show which parts of the image have higher counts. Y values are height in this case so I am excluding since I want 2D. Since I have many millions of data points, I have grouped by the combinations of X and Z coordinates and counted how many times that value occurred. The data should contain almost all conbinations of X and Z coordinates.  It looks something like this (fake data):</p>
  
  <p><a href="https://i.stack.imgur.com/Qoj6Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qoj6Z.png" alt="enter image description here"></a></p>
  
  <p>I have experimented with matplotlib.pyplot by using the plt.hist2d(x,y) function but it seems like this takes raw data and not already-summarized data like I've got.</p>
  
  <p>Does anyone know if this is possible?</p>
  
  <p>Note: I can figure out the plotting on an image part later, first I'm trying to get the scatter-plot/heatmap to show aggregated data.</p>