Gnuplot script.
Added contour length calculation.