values = [1, 2, 2, 3, 4, 6, 7, 7, 8, 10]
ti = np.linspace(0, 100, 100)
XI, YI = np.meshgrid(ti, ti)
ZI = invDist(xv, yv, values, 100, 100, power, smoothing)
n = plt.normalize(0.0, 100.0)
plt.subplot(1, 1, 1)
plt.pcolor(XI, YI, ZI)
plt.scatter(xv, yv, 100, values)
plt.title('Inv dist interpolation - power: ' + str(power) + ' smoothing: ' +
    str(smoothing))
plt.xlim(0, 100)
plt.ylim(0, 100)
plt.colorbar()
plt.show()
Interpolation over an irregular grid