diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index 8b2dfbdec41..ad8d04d6188 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -1642,6 +1642,13 @@ def test_facetgrid_no_cbar_ax(self) -> None: with pytest.raises(ValueError): self.plotfunc(d, x="x", y="y", col="columns", row="rows", cbar_ax=1) + def test_multiplot_over_length_one_dim(self) -> None: + a = easy_array((1, 1, 1)) + d = DataArray(a, dims=("col", "row", "hue")) + self.plotfunc(d, col="col") + self.plotfunc(d, row="row") + self.plotfunc(d, hue="hue") + def test_cmap_and_color_both(self) -> None: with pytest.raises(ValueError): self.plotmethod(colors="k", cmap="RdBu")