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

Method test_convenient_facetgrid_4d

xarray/tests/test_plot.py:1662–1669  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1660
1661 @pytest.mark.filterwarnings("ignore:tight_layout cannot")
1662 def test_convenient_facetgrid_4d(self) -> None:
1663 a = easy_array((10, 15, 2, 3))
1664 d = DataArray(a, dims=["y", "x", "columns", "rows"])
1665 g = self.plotfunc(d, x="x", y="y", col="columns", row="rows")
1666
1667 assert_array_equal(g.axs.shape, [3, 2])
1668 for ax in g.axs.flat:
1669 assert ax.has_data()
1670
1671 @pytest.mark.parametrize(
1672 ["n", "figsize", "aspect", "expected_shape"],

Callers

nothing calls this directly

Calls 3

DataArrayClass · 0.90
easy_arrayFunction · 0.85
has_dataMethod · 0.80

Tested by

no test coverage detected