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

Method test_facetgrid_shape

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

Source from the content-addressed store, hash-verified

2881 assert meta_data["add_colorbar"] is colorbar
2882
2883 def test_facetgrid_shape(self) -> None:
2884 g = self.ds.plot.scatter(x="A", y="B", row="row", col="col")
2885 assert g.axs.shape == (len(self.ds.row), len(self.ds.col))
2886
2887 g = self.ds.plot.scatter(x="A", y="B", row="col", col="row")
2888 assert g.axs.shape == (len(self.ds.col), len(self.ds.row))
2889
2890 def test_default_labels(self) -> None:
2891 g = self.ds.plot.scatter(x="A", y="B", row="row", col="col", hue="hue")

Callers

nothing calls this directly

Calls 1

scatterMethod · 0.45

Tested by

no test coverage detected