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

Method test_line_plot_wrong_hue

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

Source from the content-addressed store, hash-verified

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"):

Callers

nothing calls this directly

Calls 1

plotMethod · 0.80

Tested by

no test coverage detected