MCPcopy Index your code
hub / github.com/pydata/xarray / imshow

Function imshow

xarray/plot/dataarray_plot.py:1673–1709  ·  view source on GitHub ↗
(  # type: ignore[misc,unused-ignore]  # None is hashable :(
    darray: DataArray,
    x: Hashable | None = None,
    y: Hashable | None = None,
    *,
    figsize: Iterable[float] | None = None,
    size: float | None = None,
    aspect: float | None = None,
    ax: Axes | None = None,
    row: None = None,  # no wrap -> primitive
    col: None = None,  # no wrap -> primitive
    col_wrap: int | Literal["auto"] | None = None,
    xincrease: bool | None = True,
    yincrease: bool | None = True,
    add_colorbar: bool | None = None,
    add_labels: bool = True,
    vmin: float | None = None,
    vmax: float | None = None,
    cmap: str | Colormap | None = None,
    center: float | Literal[False] | None = None,
    robust: bool = False,
    extend: ExtendOptions = None,
    levels: ArrayLike | None = None,
    infer_intervals=None,
    colors: str | ArrayLike | None = None,
    subplot_kws: dict[str, Any] | None = None,
    cbar_ax: Axes | None = None,
    cbar_kwargs: dict[str, Any] | None = None,
    xscale: ScaleOptions = None,
    yscale: ScaleOptions = None,
    xticks: ArrayLike | None = None,
    yticks: ArrayLike | None = None,
    xlim: ArrayLike | None = None,
    ylim: ArrayLike | None = None,
    norm: Normalize | None = None,
    **kwargs: Any,
)

Source from the content-addressed store, hash-verified

1671
1672@overload
1673def imshow( # type: ignore[misc,unused-ignore] # None is hashable :(
1674 darray: DataArray,
1675 x: Hashable | None = None,
1676 y: Hashable | None = None,
1677 *,
1678 figsize: Iterable[float] | None = None,
1679 size: float | None = None,
1680 aspect: float | None = None,
1681 ax: Axes | None = None,
1682 row: None = None, # no wrap -> primitive
1683 col: None = None, # no wrap -> primitive
1684 col_wrap: int | Literal["auto"] | None = None,
1685 xincrease: bool | None = True,
1686 yincrease: bool | None = True,
1687 add_colorbar: bool | None = None,
1688 add_labels: bool = True,
1689 vmin: float | None = None,
1690 vmax: float | None = None,
1691 cmap: str | Colormap | None = None,
1692 center: float | Literal[False] | None = None,
1693 robust: bool = False,
1694 extend: ExtendOptions = None,
1695 levels: ArrayLike | None = None,
1696 infer_intervals=None,
1697 colors: str | ArrayLike | None = None,
1698 subplot_kws: dict[str, Any] | None = None,
1699 cbar_ax: Axes | None = None,
1700 cbar_kwargs: dict[str, Any] | None = None,
1701 xscale: ScaleOptions = None,
1702 yscale: ScaleOptions = None,
1703 xticks: ArrayLike | None = None,
1704 yticks: ArrayLike | None = None,
1705 xlim: ArrayLike | None = None,
1706 ylim: ArrayLike | None = None,
1707 norm: Normalize | None = None,
1708 **kwargs: Any,
1709) -> AxesImage: ...
1710
1711
1712@overload

Callers

nothing calls this directly

Calls 6

_center_pixelsFunction · 0.85
imshowMethod · 0.80
arangeMethod · 0.80
updateMethod · 0.45
copyMethod · 0.45
anyMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…