So I\'m trying to plot a spectrogram, but I want the frequency in periods. I tried doing freqs = 1./freqs, as below in code, but I got the wrong spectrogram, as shown in image:<