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

Method test_date_dimension

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

Source from the content-addressed store, hash-verified

624 assert ax.has_data()
625
626 def test_date_dimension(self) -> None:
627 nrow = 3
628 ncol = 4
629 start = date(2000, 1, 1)
630 time = [start + timedelta(days=i) for i in range(nrow)]
631 a = DataArray(
632 easy_array((nrow, ncol)), coords=[("time", time), ("y", range(ncol))]
633 )
634 a.plot() # type: ignore[call-arg]
635 ax = plt.gca()
636 assert ax.has_data()
637
638 @pytest.mark.slow
639 @pytest.mark.filterwarnings("ignore:tight_layout cannot")

Callers

nothing calls this directly

Calls 4

DataArrayClass · 0.90
easy_arrayFunction · 0.85
plotMethod · 0.80
has_dataMethod · 0.80

Tested by

no test coverage detected