MCPcopy Index your code
hub / github.com/pydata/xarray / setup

Method setup

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

Source from the content-addressed store, hash-verified

149class PlotTestCase:
150 @pytest.fixture(autouse=True)
151 def setup(self) -> Generator:
152 yield
153 # Remove all matplotlib figures
154 plt.close("all")
155
156 def pass_in_axis(self, plotmethod, subplot_kw=None) -> None:
157 _fig, axs = plt.subplots(ncols=2, subplot_kw=subplot_kw, squeeze=False)

Callers

nothing calls this directly

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected