diff --git a/pyproject.toml b/pyproject.toml index db64d7a18c5..2081f7f87bc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,7 +118,6 @@ module = [ "matplotlib.*", "mpl_toolkits.*", "nc_time_axis.*", - "numbagg.*", "netCDF4.*", "netcdftime.*", "opt_einsum.*", @@ -329,8 +328,7 @@ filterwarnings = [ "default:the `pandas.MultiIndex` object:FutureWarning:xarray.tests.test_variable", "default:Using a non-tuple sequence for multidimensional indexing is deprecated:FutureWarning", "default:Duplicate dimension names present:UserWarning:xarray.namedarray.core", - "default:::xarray.tests.test_strategies", - # TODO: remove once we know how to deal with a changed signature in protocols + "default:::xarray.tests.test_strategies", # TODO: remove once we know how to deal with a changed signature in protocols "ignore:__array__ implementation doesn't accept a copy keyword, so passing copy=False failed.", ] diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index a44b621a981..5cdd164378e 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -3406,3 +3406,10 @@ def test_plot1d_filtered_nulls() -> None: actual = pc.get_offsets().shape[0] assert expected == actual + + +import matplotlib.pyplot as plt + +data = xr.DataArray([1, 2, 3], dims=["x"]) +fig, ax = plt.subplots(ncols=1, nrows=1) +data.plot(ax=ax)