## # 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' set multiplot layout 1,3 set isosamples 20,20 set hidden3d set xrange [-9:11] set yrange [-9:11] set label "P(1,1,0)" at 1,1,0 point lt 1 pt 7 offset 1,-1 f(x,y) = (x*y*sin(x - y)) / (1 + x**2 + y**2) df(x,y) = (x - 1) / 3. - (y - 1) / 3. set title "1x" splot f(x,y) title "f(x,y) = (xy sin(x - y)) / (1 + x^2 + y^2)", \ df(x,y) title "df(x,y) = (x - 1) / 3 - (y - 1) / 3" unset key set xrange [0:2] set yrange [0:2] set title "10x" splot f(x,y), df(x,y) set xrange [.9:1.1] set yrange [.9:1.1] set title "100x" splot f(x,y), df(x,y)