PlotSpectrogram function

Calculates and Plots spectrogram