This is a test to try calling Gnuplot from a Fortran 90 script. The compiler used is GFortran.
The main program generates 3D data of the function
in a suitable format for Gnuplot storing it in the file data.txt. Then, it calls Gnuplot for plotting the generated data using the commands from the file gnuplot_script.plt.
The resulting plot is
For the making of the main program the following references have been consulted:
(Engel 2020) was consulted for the data file creation and gnuplot plotting from Fortran. (Moin 2002) was consulted for the creation of functions in Fortran 90.