Plotting three-dimensional plots with surfaces or contours
Plotting three-dimensional plots with surfaces or contours
A D V E R T I S E M E N T
By default, a splot command plots only the surface and not a
contour of a surface. However, by using the set contour
command, you can have gnuplot plot a contour of the function. There are two
different ways contours are drawn, and these can be specified as an option
following the set contour command. The valid values are as
follows: basesurface or both.
The following is a set of plots of a function using these options. Some of
the sampling and isosampling has been tweaked, but that will not be discussed
here.
splot sinc(x) * sinc(y)
set contour base; splot sinc(x) * sinc(y)
set contour surface; splot sinc(x) * sinc(y)
set contour both; splot sinc(x) * sinc(y)