MCPcopy
hub / github.com/pydata/xarray / test_datetime_dimension

Method test_datetime_dimension

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

Source from the content-addressed store, hash-verified

613 assert ax.has_data()
614
615 def test_datetime_dimension(self) -> None:
616 nrow = 3
617 ncol = 4
618 time = pd.date_range("2000-01-01", periods=nrow)
619 a = DataArray(
620 easy_array((nrow, ncol)), coords=[("time", time), ("y", range(ncol))]
621 )
622 a.plot() # type: ignore[call-arg]
623 ax = plt.gca()
624 assert ax.has_data()
625
626 def test_date_dimension(self) -> None:
627 nrow = 3

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