8.14.1 Surface plottingThe surface plot style is similar to the colormap and contourmap plot styles, but produces maps of the values set samples grid 40x40 If data is supplied from a data file, then it is first re-sampled onto a regular grid using one of the methods described in Section 8.12. The example below plots a surface indicating the magnitude of the imaginary part of set numerics complex ![]() Example: A surface plotted above a contour map In this example, we plot a surface showing the value of the expression ![]() ![]() set nokey set size 8 square plot 3d x**3/20+y**2 with surface col black fillc red, ![]() x**3/20+y**2 with contours col black ![]() Example: The sinc( ![]() In this example, we produce a surface showing the function ![]() ![]() ![]() ![]() set numerics complex set xlabel "$x$" set ylabel "$y$" set zlabel "$z$" set xformat r"%s$ ![]() set yformat r"%s$ ![]() set xtics 3*pi ; set mxtics pi set ytics 3*pi ; set mytics pi set ztics set key below set size 8 square set grid plot 3d [-6*pi:6*pi][-6*pi:6*pi][-0.3:1] sinc(hypot(x,y)) ![]() with surface col black ![]() fillcol hsb(atan2($1,$2)/(2*pi)+0.5,hypot($1,$2)/30+0.2,$3*0.5+0.5) ![]()
|