fix the plot of the spectrum of gaussian pulse