Compute and plot a spectrogram in Python.