(self)
| 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") |
nothing calls this directly
no test coverage detected