Skip to main content
`Ctrl`+`K`

# scipy.signal.ShortTimeFFT.extent

ShortTimeFFT.extent(n, axes_seq='tf', center_bins=False)

  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 the `stft`. That tuple can be passed to `matplotlib.pyplot.imshow` as a parameter with the same name.

  Parameters:
    n int

      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 the `stft` 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.