a127 = -2.84411 b127 = 3.3351 c127 = 0. d127 =1.27428 e127 = 0.0970149 f127 = -3.92405 tconvert = 1.e7 tstart=0 off = tstart * tconvert # time = t*tconvert h127 = b127*tanh(a127*(-d127+0.5))+c127 +b127*tanh(-f127*(e127+0.5)) f(x) = (b127*tanh(a127*(x/100.-d127-off))+c127 +b127*tanh(-f127*(x/100.+e127-off)))/h127 set samples 1000 set xlabel 'time [ns]' set ylabel 'kick amplitude' set label at graph 1.02,0.02 '/field_maps/plot_kicker_field.gnu' rotate font 'verdana, 6' noenhance set timestamp offset graph 1.13,0.7 rotate font 'Verdana,6' set term pdf fontscale 0.75 size 6.0in,4.0in outfile = 'near-ideal-kicker-pulse.pdf' set output outfile set xrange [-100:1200] set grid plot f(x) not print outfile