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

Method test_2d_coord_with_interval

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

Source from the content-addressed store, hash-verified

1746 self.plotmethod(colors="k", cmap="RdBu")
1747
1748 def test_2d_coord_with_interval(self) -> None:
1749 for dim in self.darray.dims:
1750 gp = self.darray.groupby_bins(dim, range(15), restore_coord_dims=True).mean(
1751 [dim]
1752 )
1753 for kind in ["imshow", "pcolormesh", "contourf", "contour"]:
1754 getattr(gp.plot, kind)()
1755
1756 def test_colormap_error_norm_and_vmin_vmax(self) -> None:
1757 norm = mpl.colors.LogNorm(0.1, 1e1)

Callers

nothing calls this directly

Calls 2

meanMethod · 0.45
groupby_binsMethod · 0.45

Tested by

no test coverage detected