Fix doctest and add plot example to spectrogram