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

Method test_plot_nans

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

Source from the content-addressed store, hash-verified

1402 assert isinstance(ax.xaxis.get_major_formatter(), mdates.ConciseDateFormatter)
1403
1404 def test_plot_nans(self) -> None:
1405 x1 = self.darray[:5]
1406 x2 = self.darray.copy()
1407 x2[5:] = np.nan
1408
1409 clim1 = self.plotfunc(x1).get_clim()
1410 clim2 = self.plotfunc(x2).get_clim()
1411 assert clim1 == clim2
1412
1413 @pytest.mark.filterwarnings("ignore::UserWarning")
1414 @pytest.mark.filterwarnings("ignore:invalid value encountered")

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected