`spectrogram` resamples signal and use the `specgram` function from the `signal` library to compute the spectrogram. Results resolution can be then reduced to quickly plot large signals.
Numerical vector of the signal.
Signal sample rate in Hertz.
Maximal frequency to plot in Hertz. Signal will be resampled at maxFreq*2 sample rate.
The size of the Fourier transform window.
Shape of the fourier transform window, defaults to n.
Overlap with previous window, defaults to 0.
Color scale used for the underlying plot function.
Aggregate frequency used to lower spectrogram resolution. Defaults to 4.
Boolean, plot or not the spectrogram.
Posixct of the signal start. Adjust the x axis labels accordingly.