contour matrix