using GMT
imshow("ackley", view=(159,30), shade=true)
grdview can plot 3-D surfaces with them provided as grids or as function equations or some predefined function names. Note that the view option controls the azimuth and elevation angle of the view.
There are a couple of predefined functions that can plotted for demonstration purposes. For example the ackley function
Or the rosenbrock that looks like a manta ray (other options are parabola, eggbox, sombrero)”
But besides these predefined functions one can any function that defines a surface. For example a parabola can be plotted with the code bellow. First argument can be an anonymous function (like the example) of a function. Second and third args contain the plotting domain and step used to evaluate the function.

And we can plot 3D lines too. Same thing, give a parametric equation and