scipy.signal.ShortTimeFFT.extent#
- ShortTimeFFT.extent(n, axes_seq='tf', center_bins=False)[source]#
Return minimum and maximum values time-frequency values.
A tuple with four floats
(t0, t1, f0, f1)
for ‘tf’ and(f0, f1, t0, t1)
for ‘ft’ is returned describing the corners of the time-frequency domain of thestft
. That tuple can be passed tomatplotlib.pyplot.imshow
as a parameter with the same name.- Parameters:
- nint
Number of samples in input signal.
- axes_seq{‘tf’, ‘ft’}
Return time extent first and then frequency extent or vice-versa.
- center_bins: bool
If set (default
False
), the values of the time slots and frequency bins are moved from the side the middle. This is useful, when plotting thestft
values as step functions, i.e., with no interpolation.
See also
matplotlib.pyplot.imshow
Display data as an image.
scipy.signal.ShortTimeFFT
Class this method belongs to.