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

Method test_test_empty_cell

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

Source from the content-addressed store, hash-verified

2653 assert substring_in_axes(str(self.darray.name), ax)
2654
2655 def test_test_empty_cell(self) -> None:
2656 g = (
2657 self.darray.isel(row=1) # type: ignore[call-arg]
2658 .drop_vars("row")
2659 .plot(col="col", hue="hue", col_wrap=2)
2660 )
2661 bottomright = g.axs[-1, -1]
2662 assert not bottomright.has_data()
2663 assert not bottomright.get_visible()
2664
2665 def test_set_axis_labels(self) -> None:
2666 g = self.darray.plot(row="row", col="col", hue="hue") # type: ignore[call-arg]

Callers

nothing calls this directly

Calls 4

plotMethod · 0.80
has_dataMethod · 0.80
drop_varsMethod · 0.45
iselMethod · 0.45

Tested by

no test coverage detected