# Sample 2-d plot # You can run this by typing at the prompt: gnuplot 2dplot.plt unset border unset ytics unset key # "samples" is the number of points at which to evaluate a # function. "100" is actually the default. set samples 100 set style line 1 linetype -1 linewidth 1 set style arrow 1 nohead linetype 0 linewidth 1 # We make the cross-hairs here. "ls" is short for "linestyle". # "1" is a linestyle we defined above. We also add one unlabeled # x tic. set xzeroaxis ls 1 set yzeroaxis ls 1 set xtics axis ('' 1.965) # You can find appropriate label positions by moving the cursor # inside the plot. set label 'c' at 0.6,-0.18 set label 'z' at 4.9,0.01 set label 'F' at 2.8,-0.08 set label 'dF' at 3,0.19 # Uncomment the following two lines to save the graph as an eps # file. set terminal postscript eps rounded set output '2dplot.eps' # "w l ls 1" is short for "with lines linestyle 1". set arrow from 1.965,0 to 1.965,-0.136 arrowstyle 1 plot [-0.5:5] [-0.2:0.2] '2dplot.dat' w l ls 1, \ 'd2dplot.dat' w l ls 1, x**2*(1 - x) w l ls 1