title: Interpolate a discrete grid of dots
body: <p>I'm referencing <a href="https://stackoverflow.com/questions/5146025/python-scipy-2d-interpolation-non-uniform-data">this question</a> and <a href="http://docs.scipy.org/doc/scipy-0.14.0/reference/generated/scipy.interpolate.griddata.html" rel="nofollow noreferrer">this documentation</a> in trying to turn a set of points (the purple dots in the image below) into an interpolated grid.</p>
  
  <p><a href="https://i.stack.imgur.com/Qv412.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Qv412.png" alt="enter image description here"></a></p>
  
  <p>As you can see, the image has missing spots where dots <em>should</em> be. I'd like to figure out where those are.</p>
  
  <pre><code>import numpy as np
  from scipy import interpolate
  
  CIRCLES_X = 25 # There should be 25 circles going across
  CIRCLES_Y = 10 # There should be 10 circles going down
  
  points = []
  values = []
  # Points range from 0-800 ish X, 0-300 ish Y 
  for point in points:
      points.append([points.x, points.y])
      values.append(1) # Not sure what this should be
  
  grid_x, grid_y = np.mgrid[0:CIRCLES_Y, 0:CIRCLES_X]
  grid = interpolate.griddata(points, values, (grid_x, grid_y), method='linear')
  print(grid)
  </code></pre>
  
  <p>Whenever I print out the result of the grid, I get <code>nan</code> for all of my values.</p>
  
  <p>Where am I going wrong? Is my problem even the correct use case for <code>interpolate.grid</code>?</p>