How to plot contour in an arbitrary shape of area?

Interpolate your scatter points into a grid or compute one and then do like this example except that you’ll have to provide the points of the clipping polygon.