MCPcopy
hub / github.com/pydata/xarray / test_set_axis_labels

Method test_set_axis_labels

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

Source from the content-addressed store, hash-verified

2473
2474 @pytest.mark.slow
2475 def test_set_axis_labels(self) -> None:
2476 g = self.g.map_dataarray(xplt.contourf, "x", "y")
2477 g.set_axis_labels("longitude", "latitude")
2478 alltxt = text_in_fig()
2479 for label in ["longitude", "latitude"]:
2480 assert label in alltxt
2481
2482 @pytest.mark.slow
2483 def test_facetgrid_colorbar(self) -> None:

Callers

nothing calls this directly

Calls 3

text_in_figFunction · 0.85
map_dataarrayMethod · 0.80
set_axis_labelsMethod · 0.80

Tested by

no test coverage detected