## # 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 hidden3d set xrange [-9:11] set yrange [-9:11] set view 85,30 set label "P(1,1,5)" at 1,1,5 point lt 1 pt 7 offset 1,-1 f(x,y) = x**2 + x*y + 3*y**2 df(x,y) = 3*x + 7*y - 5 set title "1x" splot f(x,y) title "f(x,y) = x^2 + xy + 3y^2", \ df(x,y) title "df(x,y) = 3x + 7y - 5" 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)