## # mod_tex: distributed LaTeX-rendering over Apache # Copyright (C) 2007 Peter Danenberg # See doc/COPYING for details. set term pngcairo size 800,600 font ",8" enhanced crop set output 'plot.png' f(x, y) = sin(x) + sin(y) set multiplot set contour set cntrparam level 10 set view map set xrange [-6:6] set yrange [-6:6] unset surface unset key set isosamples 100,100 set samples 100,100 splot f(x, y) unset contour set isosamples 30,30 set samples 30,30 set surface set key l = 0.5 set border 0 unset tics splot '+' using 1:2:(0.0):(l*cos($1)):(l*cos($2)):(0.0) with vectors title "f(x,y) = sin(x) + sin(y)"