title: griddata and polar plots
body: <p>I am using matplotlib to fit some data to a grid and plot it as a polar projection. Something like in the example below. However, I want it to be smooth where the edges of the plot meet at 0/360 degrees. Anyone know how I do this??</p>
  
  <pre><code>from pylab import *
  import random
  
  x = linspace(0, 360, 361).astype(int)
  x = x*pi/180
  y = linspace(0.05, 0.5, 800)
  xgrid, ygrid = meshgrid(x, y)
  
  
  baz = []
  for c in range(2000): baz.append(random.randint(0,360))
  
  
  freq = rand(len(baz))
  pwr = rand(len(baz))
  
  zgrid = griddata(baz,freq,pwr, xgrid, ygrid)
  subplot(111,  polar=True)
  pcolormesh(xgrid, ygrid, zgrid)
  show()
  </code></pre>
  
  <p>Also the data I am working with has a gap due to the mask created by griddata (I use griddata as above but then sum many grids in a loop). I would like to fill the missing segment (see attached fig), does anyone know how to do this?</p>
  
  <p><img src="https://i.stack.imgur.com/JmiJ7.png" alt="enter image description here">
  thanks
  Dave</p>