(
darray: DataArray,
*args: Any,
x: Hashable | None = None,
y: Hashable | None = None,
z: Hashable | None = None,
hue: Hashable | None = None,
hue_style: HueStyleOptions = None,
markersize: Hashable | None = None,
linewidth: Hashable | None = None,
row: Hashable | None = None,
col: Hashable | None = None,
col_wrap: int | Literal["auto"] | None = None,
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
aspect: float | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
add_colorbar: bool | None = None,
add_labels: bool | Iterable[bool] = True,
add_title: bool = True,
subplot_kws: dict[str, Any] | None = None,
xscale: ScaleOptions = None,
yscale: ScaleOptions = None,
xticks: ArrayLike | None = None,
yticks: ArrayLike | None = None,
xlim: tuple[float, float] | None = None,
ylim: tuple[float, float] | None = None,
cmap: str | Colormap | None = None,
vmin: float | None = None,
vmax: float | None = None,
norm: Normalize | None = None,
extend: ExtendOptions = None,
levels: ArrayLike | None = None,
**kwargs,
)
| 842 | plotfunc, assigned=("__module__", "__name__", "__qualname__", "__doc__") |
| 843 | ) |
| 844 | def newplotfunc( |
| 845 | darray: DataArray, |
| 846 | *args: Any, |
| 847 | x: Hashable | None = None, |
| 848 | y: Hashable | None = None, |
| 849 | z: Hashable | None = None, |
| 850 | hue: Hashable | None = None, |
| 851 | hue_style: HueStyleOptions = None, |
| 852 | markersize: Hashable | None = None, |
| 853 | linewidth: Hashable | None = None, |
| 854 | row: Hashable | None = None, |
| 855 | col: Hashable | None = None, |
| 856 | col_wrap: int | Literal["auto"] | None = None, |
| 857 | ax: Axes | None = None, |
| 858 | figsize: Iterable[float] | None = None, |
| 859 | size: float | None = None, |
| 860 | aspect: float | None = None, |
| 861 | xincrease: bool | None = True, |
| 862 | yincrease: bool | None = True, |
| 863 | add_legend: bool | None = None, |
| 864 | add_colorbar: bool | None = None, |
| 865 | add_labels: bool | Iterable[bool] = True, |
| 866 | add_title: bool = True, |
| 867 | subplot_kws: dict[str, Any] | None = None, |
| 868 | xscale: ScaleOptions = None, |
| 869 | yscale: ScaleOptions = None, |
| 870 | xticks: ArrayLike | None = None, |
| 871 | yticks: ArrayLike | None = None, |
| 872 | xlim: tuple[float, float] | None = None, |
| 873 | ylim: tuple[float, float] | None = None, |
| 874 | cmap: str | Colormap | None = None, |
| 875 | vmin: float | None = None, |
| 876 | vmax: float | None = None, |
| 877 | norm: Normalize | None = None, |
| 878 | extend: ExtendOptions = None, |
| 879 | levels: ArrayLike | None = None, |
| 880 | **kwargs, |
| 881 | ) -> Any: |
| 882 | # All 1d plots in xarray share this function signature. |
| 883 | # Method signature below should be consistent. |
| 884 | |
| 885 | if TYPE_CHECKING: |
| 886 | import matplotlib.pyplot as plt |
| 887 | else: |
| 888 | plt = attempt_import("matplotlib.pyplot") |
| 889 | |
| 890 | if subplot_kws is None: |
| 891 | subplot_kws = dict() |
| 892 | |
| 893 | # Handle facetgrids first |
| 894 | if row or col: |
| 895 | if z is not None: |
| 896 | subplot_kws.update(projection="3d") |
| 897 | |
| 898 | allargs = locals().copy() |
| 899 | allargs.update(allargs.pop("kwargs")) |
| 900 | allargs.pop("darray") |
| 901 | allargs.pop("plt") |
nothing calls this directly
no test coverage detected
searching dependent graphs…