To build a "beautiful" spectrogram:
FFT calculates the local spectrum of your data, minimized with window conversion.
If you do not use the window function in front of the FFT, then the window function by default turns out to be a rectangular window of FFT length, which has a transform that may seem pretty ugly if you do not expect this (some call this spectral leakage). You might want to try using some other window function (Von Hann, et.al.), where the convolution created by the window FFT can lead to a βmore pleasantβ spectrogram.
source share