set output 'pulse_freq_width_d.ps' 
set term postscript color enhanced 'Helvetica,18' size 10, 10  
set style line 1 lt rgb 'red' lw 3  
set style line 2 lt rgb 'sea-green' lw 3  
set style line 3 lt rgb 'blue' lw 3  
set style line 4 lt rgb 'cyan' lw 3  
set style line 5 lt rgb 'violet' lw 3  
set multiplot layout 2, 1 
set grid 
set key top right 
set xzeroaxis  lw 3.5 
set ylabel 'Amplitude  '  
set xlabel 'Frequency (rad/s) ' 
plot [955:1045][-0.5:1.5] 'pulse_width_d.out' index 0 using 4:($8*5)         with impulse ls 2 lw 6 t ''  
set grid 
set key top right 
set xzeroaxis  lw 3.5 
set yzeroaxis  lw 3.5 
set ylabel 'Value  '  
set xlabel 'Time (s) ' 
set title 'Sum of 19 frequencies ' 
plot [-2:2][-1.5:1.5] 'pulse_width_d.out' index 1 using 1:2         with lines ls 2 lw 2 t ''  
unset multiplot 
set output 
quit 
