Which commands are needed to get the correct pm3d map in Gnuplot?

Solution 1:

The keyword matrix is what you need for data in that form. Without it, the program will expect each line of the file to contain a single x,y,z value.

set view map
splot 'contour.dat' matrix with pm3d