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

Method test1d

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

Source from the content-addressed store, hash-verified

220 assert label_from_attrs(da) == long_latex_name
221
222 def test1d(self) -> None:
223 self.darray[:, 0, 0].plot() # type: ignore[call-arg]
224
225 with pytest.raises(ValueError, match=r"x must be one of None, 'dim_0'"):
226 self.darray[:, 0, 0].plot(x="dim_1") # type: ignore[call-arg]
227
228 with pytest.raises(TypeError, match=r"complex128"):
229 (self.darray[:, 0, 0] + 1j).plot() # type: ignore[call-arg]
230
231 def test_1d_bool(self) -> None:
232 xr.ones_like(self.darray[:, 0, 0], dtype=bool).plot() # type: ignore[call-arg]

Callers

nothing calls this directly

Calls 1

plotMethod · 0.80

Tested by

no test coverage detected