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

Method test_xlabel_uses_name

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

Source from the content-addressed store, hash-verified

918 self.darray.plot.hist() # type: ignore[call-arg]
919
920 def test_xlabel_uses_name(self) -> None:
921 self.darray.name = "testpoints"
922 self.darray.attrs["units"] = "testunits"
923 self.darray.plot.hist() # type: ignore[call-arg]
924 assert "testpoints [testunits]" == plt.gca().get_xlabel()
925
926 def test_title_is_histogram(self) -> None:
927 self.darray.coords["d"] = 10

Callers

nothing calls this directly

Calls 1

histMethod · 0.80

Tested by

no test coverage detected