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

Method test_verbose_facetgrid

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

Source from the content-addressed store, hash-verified

1613 self.plotmethod(add_colorbar=False, cbar_kwargs={"label": "label"})
1614
1615 def test_verbose_facetgrid(self) -> None:
1616 a = easy_array((10, 15, 3))
1617 d = DataArray(a, dims=["y", "x", "z"])
1618 g = xplt.FacetGrid(d, col="z", subplot_kws=self.subplot_kws)
1619 g.map_dataarray(self.plotfunc, "x", "y")
1620 for ax in g.axs.flat:
1621 assert ax.has_data()
1622
1623 def test_2d_function_and_method_signature_same(self) -> None:
1624 func_sig = inspect.signature(self.plotfunc)

Callers

nothing calls this directly

Calls 4

map_dataarrayMethod · 0.95
DataArrayClass · 0.90
easy_arrayFunction · 0.85
has_dataMethod · 0.80

Tested by

no test coverage detected