## # 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 isosamples 20 set samples 20 l = 0.05 f(t,y) = 2*y + 4 - t g(c,x) = -7/4. + 1/2.*x + c*exp(2*x) plot [0:2][-4:0] '+' using 1:2:(l):(l*f($1,$2)) \ with vectors nohead title "dy/dt - 2y = 4 - t", \ g(0,x) title "g(c, t) = -7/4 + 1/2t + ce^2t, c = 0", \ g(.1,x) lt 2, g(.2,x) lt 2, g(.3,x) lt 2, g(-.1,x) lt 2, \ g(-.2,x) lt 2, g(-.3,x) lt 2