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

Method test_cmap_divergent_option

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

Source from the content-addressed store, hash-verified

990 assert cmap_params["cmap"] == mpl.colormaps["magma"]
991
992 def test_cmap_divergent_option(self) -> None:
993 with xr.set_options(cmap_divergent="magma"):
994 cmap_params = _determine_cmap_params(self.data, center=0.5)
995 assert cmap_params["cmap"] == "magma"
996
997 def test_nan_inf_are_ignored(self) -> None:
998 cmap_params1 = _determine_cmap_params(self.data)

Callers

nothing calls this directly

Calls 1

_determine_cmap_paramsFunction · 0.90

Tested by

no test coverage detected