MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / magnitude_spectrum

Function magnitude_spectrum

lib/matplotlib/pyplot.py:3830–3852  ·  view source on GitHub ↗
(
    x: ArrayLike,
    Fs: float | None = None,
    Fc: int | None = None,
    window: Callable[[ArrayLike], ArrayLike] | ArrayLike | None = None,
    pad_to: int | None = None,
    sides: Literal["default", "onesided", "twosided"] | None = None,
    scale: Literal["default", "linear", "dB"] | None = None,
    *,
    data: DataParamType = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3828# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3829@_copy_docstring_and_deprecators(Axes.magnitude_spectrum)
3830def magnitude_spectrum(
3831 x: ArrayLike,
3832 Fs: float | None = None,
3833 Fc: int | None = None,
3834 window: Callable[[ArrayLike], ArrayLike] | ArrayLike | None = None,
3835 pad_to: int | None = None,
3836 sides: Literal["default", "onesided", "twosided"] | None = None,
3837 scale: Literal["default", "linear", "dB"] | None = None,
3838 *,
3839 data: DataParamType = None,
3840 **kwargs,
3841) -> tuple[np.ndarray, np.ndarray, Line2D]:
3842 return gca().magnitude_spectrum(
3843 x,
3844 Fs=Fs,
3845 Fc=Fc,
3846 window=window,
3847 pad_to=pad_to,
3848 sides=sides,
3849 scale=scale,
3850 **({"data": data} if data is not None else {}),
3851 **kwargs,
3852 )
3853
3854
3855# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
magnitude_spectrumMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…