add frequency to plot