Contour Landscape
Drag the slider for the height of the second of two Gaussian hills and watch twelve contour lines split and join at the saddle point between them.
In 1774, Charles Hutton needed the volume of a mountain. The Schiehallion experiment in Scotland measured how far the mountain pulled a plumb line aside, to find the mean density of the Earth, and that needed the mountain's mass. Hutton joined surveyed points of equal height with lines, and these contour lines became the standard way to show relief on maps. Lines of equal depth are older: a map of the river Spaarne from 1584 has them. A contour plot draws lines of equal value of a function f(x, y) : close together where the slope is steep, far apart where it is gentle. Weather maps and optimization use them too.
The field here is the sum of two hills shaped like bell curves (Gaussians), \exp(-(x-1)^2 - y^2) and A\exp(-(x+1)^2 - (y-1)^2) . The slider sets the height A of the second hill, from 0.1 to 3 (1.5 at the start). A viridis heatmap colors the height, and twelve contour levels draw the lines of equal value. Between the summits, the lines curve around a saddle point, or col: the lowest point of the ridge that joins the hills, the pass a hiker takes from one side to the other.
When A changes, the height of the saddle point passes the contour levels. A level just below the saddle is one contour around both hills; a level just above it is two separate loops, one around each summit. Drag A and notice that contours split in two or join into one exactly at the saddle. Then move it slowly below A \approx 0.165 : there the second hill loses its summit. Its peak and the saddle meet and vanish, and only a shoulder on the flank of the first hill stays.
JavaScript is required to view the interactive plot.