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

Function imshow

lib/matplotlib/pyplot.py:3763–3805  ·  view source on GitHub ↗
(
    X: ArrayLike | PIL.Image.Image,
    cmap: str | Colormap | None = None,
    norm: str | Normalize | None = None,
    *,
    aspect: Literal["equal", "auto"] | float | None = None,
    interpolation: str | None = None,
    alpha: float | ArrayLike | None = None,
    vmin: float | None = None,
    vmax: float | None = None,
    colorizer: Colorizer | None = None,
    origin: Literal["upper", "lower"] | None = None,
    extent: tuple[float, float, float, float] | None = None,
    interpolation_stage: Literal["data", "rgba", "auto"] | None = None,
    filternorm: bool = True,
    filterrad: float = 4.0,
    resample: bool | None = None,
    url: str | None = None,
    data: DataParamType = None,
    **kwargs,
)

Source from the content-addressed store, hash-verified

3761# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3762@_copy_docstring_and_deprecators(Axes.imshow)
3763def imshow(
3764 X: ArrayLike | PIL.Image.Image,
3765 cmap: str | Colormap | None = None,
3766 norm: str | Normalize | None = None,
3767 *,
3768 aspect: Literal["equal", "auto"] | float | None = None,
3769 interpolation: str | None = None,
3770 alpha: float | ArrayLike | None = None,
3771 vmin: float | None = None,
3772 vmax: float | None = None,
3773 colorizer: Colorizer | None = None,
3774 origin: Literal["upper", "lower"] | None = None,
3775 extent: tuple[float, float, float, float] | None = None,
3776 interpolation_stage: Literal["data", "rgba", "auto"] | None = None,
3777 filternorm: bool = True,
3778 filterrad: float = 4.0,
3779 resample: bool | None = None,
3780 url: str | None = None,
3781 data: DataParamType = None,
3782 **kwargs,
3783) -> AxesImage:
3784 __ret = gca().imshow(
3785 X,
3786 cmap=cmap,
3787 norm=norm,
3788 aspect=aspect,
3789 interpolation=interpolation,
3790 alpha=alpha,
3791 vmin=vmin,
3792 vmax=vmax,
3793 colorizer=colorizer,
3794 origin=origin,
3795 extent=extent,
3796 interpolation_stage=interpolation_stage,
3797 filternorm=filternorm,
3798 filterrad=filterrad,
3799 resample=resample,
3800 url=url,
3801 **({"data": data} if data is not None else {}),
3802 **kwargs,
3803 )
3804 sci(__ret)
3805 return __ret
3806
3807
3808# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 3

gcaFunction · 0.85
sciFunction · 0.85
imshowMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…