# Sample 3-d plot # You can run this by typing at the prompt: gnuplot 3dplot.plt unset key # Use the surface colours for the contours set style line 1 palette # Set the border lines to show (see the file gnuplot.pdf that # came with gnuplot), and add a bit more space between the tic # labels and "y" axis. Note that the positioning of the "xlabel" # is in units of the character size. set border 1+2+4+8+16 set zrange [-0.6:0.4] set yrange [0.5:1] set xtics 1,1,5 set format y "%8.1f" set xlabel "x" set ylabel "y" set zlabel "z" -7,-8 # Make a grid, set a coloured surface with contours, and # select a nice colour scheme. set dgrid3d 100,100,1 set pm3d set contour set hidden3d set palette rgb 10,13,31 set terminal postscript eps colour solid rounded set output '3dplot.eps' # The next command controls the appearance of the colour # map box, and the last makes the graph. set colorbox horiz user origin 0.1,0.9 size 0.8,.04 splot '3dplot.dat' w l ls 1, '3dplot.dat' w pm3d