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

Function cohere

lib/matplotlib/pyplot.py:3295–3327  ·  view source on GitHub ↗
(
    x: ArrayLike,
    y: ArrayLike,
    NFFT: int = 256,
    Fs: float = 2,
    Fc: int = 0,
    detrend: (
        Literal["none", "mean", "linear"] | Callable[[ArrayLike], ArrayLike]
    ) = mlab.detrend_none,
    window: Callable[[ArrayLike], ArrayLike] | ArrayLike = mlab.window_hanning,
    noverlap: int = 0,
    pad_to: int | None = None,
    sides: Literal["default", "onesided", "twosided"] = "default",
    scale_by_freq: bool | None = None,
    *,
    data: DataParamType = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3293# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3294@_copy_docstring_and_deprecators(Axes.cohere)
3295def cohere(
3296 x: ArrayLike,
3297 y: ArrayLike,
3298 NFFT: int = 256,
3299 Fs: float = 2,
3300 Fc: int = 0,
3301 detrend: (
3302 Literal["none", "mean", "linear"] | Callable[[ArrayLike], ArrayLike]
3303 ) = mlab.detrend_none,
3304 window: Callable[[ArrayLike], ArrayLike] | ArrayLike = mlab.window_hanning,
3305 noverlap: int = 0,
3306 pad_to: int | None = None,
3307 sides: Literal["default", "onesided", "twosided"] = "default",
3308 scale_by_freq: bool | None = None,
3309 *,
3310 data: DataParamType = None,
3311 **kwargs,
3312) -> tuple[np.ndarray, np.ndarray]:
3313 return gca().cohere(
3314 x,
3315 y,
3316 NFFT=NFFT,
3317 Fs=Fs,
3318 Fc=Fc,
3319 detrend=detrend,
3320 window=window,
3321 noverlap=noverlap,
3322 pad_to=pad_to,
3323 sides=sides,
3324 scale_by_freq=scale_by_freq,
3325 **({"data": data} if data is not None else {}),
3326 **kwargs,
3327 )
3328
3329
3330# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
cohereMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…