# surface_grid_input.txt # # Input to GNUPLOT, causing it to read SURFACE_GRID_GNUPLOT.TXT and # create a contour plot of the data. # # Warning: the data must be in a very specific format. # The data file will contain records of the form # x y z # There will be M x N total records. # There must be a blank space after each set of M records. # The M successive records might all have the same X value, # or, if not, they must represent successive points along a line on the surface. # # # Request PNG output. # set term png # # Name the PNG file. # set output "surface_grid.png" # # Set the title. # set title "Surface plot of 41x41 table Z(X,Y)" # # Set the viewing angle. # set view 77, 77 # # Put the base plane at the middle of the Z range. # set xyplane -0.5 # # Remove lines that should be hidden by the surface. # set hidden3d # # Timestamp the plot. # set timestamp # # Read the data, and display it using lines. # splot "surface_grid_gnuplot.txt" with lines # # Terminate. # quit