(self)
| 305 | assert_array_equal(line.get_ydata(), da.coords["time"].values) |
| 306 | |
| 307 | def test_line_plot_wrong_hue(self) -> None: |
| 308 | da = xr.DataArray( |
| 309 | data=np.array([[0, 1], [5, 9]]), |
| 310 | dims=["x", "t"], |
| 311 | ) |
| 312 | |
| 313 | with pytest.raises(ValueError, match="hue must be one of"): |
| 314 | da.plot(x="t", hue="wrong_coord") # type: ignore[call-arg] |
| 315 | |
| 316 | def test_2d_line(self) -> None: |
| 317 | with pytest.raises(ValueError, match=r"hue"): |