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

Method test_2d_line_accepts_x_kw

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

Source from the content-addressed store, hash-verified

337 assert legend.get_title().get_text() == "dim_1"
338
339 def test_2d_line_accepts_x_kw(self) -> None:
340 self.darray[:, :, 0].plot.line(x="dim_0")
341 assert plt.gca().get_xlabel() == "dim_0"
342 plt.cla()
343 self.darray[:, :, 0].plot.line(x="dim_1")
344 assert plt.gca().get_xlabel() == "dim_1"
345
346 def test_2d_line_accepts_hue_kw(self) -> None:
347 self.darray[:, :, 0].plot.line(hue="dim_0")

Callers

nothing calls this directly

Calls 1

lineMethod · 0.45

Tested by

no test coverage detected