| 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] |