Make contour of scatter

You can use tricontourf as suggested in case b. of this other answer: import matplotlib.tri as tri import matplotlib.pyplot as plt plt.tricontour(x, y, z, 15, linewidths=0.5, colors=”k”) plt.tricontourf(x, y, z, 15) Old reply: Use the following function to convert to the format required by contourf: from numpy import linspace, meshgrid from matplotlib.mlab import griddata def … Read more