## # 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 yrange [1:3] set xrange [-2:2] set parametric set hidden3d set isosamples 100,100 set label "(1,2,2)" center at 1,2,12 offset 0,0.2 set arrow from 1,2,2 to 1,2,12 backhead splot 2*cos(u)*cos(v),sqrt(8.)*sin(u)*cos(v),4*sin(v) title "f(x, y, z) = 4x^2 + 2y^2 + z^2 = 16", \ u,2,v title "y = 2", \ 1+u, 2, -2*u + 2 lw 3 title "f_x(x, y, z) at (1, 2, 2)"