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

Method test_default_title

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

Source from the content-addressed store, hash-verified

1538 self.plotfunc(da, x="a", y="y")
1539
1540 def test_default_title(self) -> None:
1541 a = DataArray(easy_array((4, 3, 2)), dims=["a", "b", "c"])
1542 a.coords["c"] = [0, 1]
1543 a.coords["d"] = "foo"
1544 self.plotfunc(a.isel(c=1))
1545 title = plt.gca().get_title()
1546 assert title in {"c = 1, d = foo", "d = foo, c = 1"}
1547
1548 def test_colorbar_default_label(self) -> None:
1549 self.plotmethod(add_colorbar=True)

Callers

nothing calls this directly

Calls 3

iselMethod · 0.95
DataArrayClass · 0.90
easy_arrayFunction · 0.85

Tested by

no test coverage detected