This is a simple test to generate a data file using Fortran 90 (with the GFortran compiler) and then represent the 3D data using Gnuplot.
The main program generates 3D data of the function
then, using the commands from the file gnuplot_script.txt the generated data in datafile.dat can be plotted in Gnuplot.
The resulting plot is