Contours filtered in a function.