# humps_commands.txt # # Usage: # gnuplot < humps_commands.txt # set term png set output 'humps_plot.png' set xlabel 'x' set ylabel 'y' set zlabel 'Z' set title 'y = humps(x)' set grid set timestamp set style data lines set xrange [0.0:2.0] set samples 51 f(x)=1.0/((x-0.3)**2+0.01)+1.0/((x-0.9)**2+0.04)-6.0 plot f(x) with linespoints pt 7 ps 2 quit