vispy.visuals.spectrogram.
SpectrogramVisual
Bases: vispy.visuals.image.ImageVisual
vispy.visuals.image.ImageVisual
Calculate and show a spectrogram
1D signal to operate on. If len(x) < n_fft, x will be zero-padded to length n_fft.
If len(x) < n_fft
n_fft
Number of FFT points. Much faster for powers of two.
Step size between calculations. If None, n_fft // 2 will be used.
n_fft // 2
The sample rate of the data.
Window function to use. Can be 'hann' for Hann window, or None for no windowing.
'hann'
Normalization of spectrogram values across frequencies.
Scale to apply to the result of the STFT. 'log' will use 10 * log10(power).
'log'
10 * log10(power)
Colormap name.
Colormap limits. Should be 'auto' or a two-element tuple of min and max values.
'auto'
color_scale
The color scale
freqs
The spectrogram frequencies
fs
The sampling frequency
The length of fft window
normalize
The normalization setting
step
The step of fft window
window
The used window function
x
The original signal