Skip to content

Commit 212a5d7

Browse files
authored
Set sharex/sharey to false if using 3d plots (pydata#7047)
1 parent 968443c commit 212a5d7

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

xarray/plot/facetgrid.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,10 @@ def _easy_facetgrid(
742742
size = 3
743743
elif figsize is not None:
744744
raise ValueError("cannot provide both `figsize` and `size` arguments")
745+
if kwargs.get("z") is not None:
746+
# 3d plots doesn't support sharex, sharey, reset to mpl defaults:
747+
sharex = False
748+
sharey = False
745749

746750
g = FacetGrid(
747751
data=data,

0 commit comments

Comments
 (0)