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

Method test_set_axis_labels

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

Source from the content-addressed store, hash-verified

2663 assert not bottomright.get_visible()
2664
2665 def test_set_axis_labels(self) -> None:
2666 g = self.darray.plot(row="row", col="col", hue="hue") # type: ignore[call-arg]
2667 g.set_axis_labels("longitude", "latitude")
2668 alltxt = text_in_fig()
2669
2670 assert "longitude" in alltxt
2671 assert "latitude" in alltxt
2672
2673 def test_axes_in_faceted_plot(self) -> None:
2674 with pytest.raises(ValueError):

Callers

nothing calls this directly

Calls 3

text_in_figFunction · 0.85
plotMethod · 0.80
set_axis_labelsMethod · 0.80

Tested by

no test coverage detected