def setUp(self) -> None:
        """
        Create a DataArray with a time-axis that contains cftime.datetime
        objects.
        """
        # case for 1d array
        data = np.random.rand(4, 12)
        time = xr.date_range(
            start="2017", periods=12, freq="1ME", calendar="noleap", use_cftime=True
        )
        darray = DataArray(data, dims=["x", "time"])
        darray.coords["time"] = time

        self.darray = darray

        Create a DataArray with a time-axis that contains cftime.datetime
        objects.
        
xarray/tests/test_plot.py