Automatic choosing of contour levels