Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ New Features
- Added ``inherit='all_coords'`` option to :py:meth:`DataTree.to_dataset` to inherit
all parent coordinates, not just indexed ones (:issue:`10812`, :pull:`11230`).
By `Alfonso Ladino <https://github.com/aladinor>`_.
- Support ``col_wrap='auto'`` in plots that will wrap the grid to be as square
as possible (:pull:`11266`).
By `Michael Niklas <https://github.com/headtr1ck>`_.

Breaking Changes
~~~~~~~~~~~~~~~~
Expand Down
54 changes: 27 additions & 27 deletions xarray/plot/accessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def scatter( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
Expand Down Expand Up @@ -232,7 +232,7 @@ def scatter(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
Expand Down Expand Up @@ -272,7 +272,7 @@ def scatter(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
Expand Down Expand Up @@ -311,7 +311,7 @@ def imshow( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -350,7 +350,7 @@ def imshow(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -389,7 +389,7 @@ def imshow(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -432,7 +432,7 @@ def contour( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -471,7 +471,7 @@ def contour(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -510,7 +510,7 @@ def contour(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -553,7 +553,7 @@ def contourf( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -592,7 +592,7 @@ def contourf(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -631,7 +631,7 @@ def contourf(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -674,7 +674,7 @@ def pcolormesh( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -713,7 +713,7 @@ def pcolormesh(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -752,7 +752,7 @@ def pcolormesh(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -795,7 +795,7 @@ def surface(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -834,7 +834,7 @@ def surface(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -873,7 +873,7 @@ def surface(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_colorbar: bool | None = None,
Expand Down Expand Up @@ -940,7 +940,7 @@ def scatter( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
row: None = None, # no wrap -> primitive
col: None = None, # no wrap -> primitive
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
Expand Down Expand Up @@ -980,7 +980,7 @@ def scatter(
ax: Axes | None = None,
row: Hashable | None = None,
col: Hashable, # wrap -> FacetGrid
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
Expand Down Expand Up @@ -1020,7 +1020,7 @@ def scatter(
ax: Axes | None = None,
row: Hashable, # wrap -> FacetGrid
col: Hashable | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
xincrease: bool | None = True,
yincrease: bool | None = True,
add_legend: bool | None = None,
Expand Down Expand Up @@ -1062,7 +1062,7 @@ def quiver( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
sharex: bool = True,
sharey: bool = True,
aspect: AspectOptions = None,
Expand Down Expand Up @@ -1098,7 +1098,7 @@ def quiver(
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
sharex: bool = True,
sharey: bool = True,
aspect: AspectOptions = None,
Expand Down Expand Up @@ -1134,7 +1134,7 @@ def quiver(
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
sharex: bool = True,
sharey: bool = True,
aspect: AspectOptions = None,
Expand Down Expand Up @@ -1174,7 +1174,7 @@ def streamplot( # type: ignore[misc,unused-ignore] # None is hashable :(
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
sharex: bool = True,
sharey: bool = True,
aspect: AspectOptions = None,
Expand Down Expand Up @@ -1210,7 +1210,7 @@ def streamplot(
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
sharex: bool = True,
sharey: bool = True,
aspect: AspectOptions = None,
Expand Down Expand Up @@ -1246,7 +1246,7 @@ def streamplot(
ax: Axes | None = None,
figsize: Iterable[float] | None = None,
size: float | None = None,
col_wrap: int | None = None,
col_wrap: int | Literal["auto"] | None = None,
sharex: bool = True,
sharey: bool = True,
aspect: AspectOptions = None,
Expand Down
Loading
Loading