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

Method pass_in_axis

xarray/tests/test_plot.py:156–160  ·  view source on GitHub ↗
(self, plotmethod, subplot_kw=None)

Source from the content-addressed store, hash-verified

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)
158 ax = axs[0, 0]
159 plotmethod(ax=ax)
160 assert ax.has_data()
161
162 @pytest.mark.slow
163 def imshow_called(self, plotmethod) -> bool:

Callers 5

test_can_pass_in_axisMethod · 0.80
test_can_pass_in_axisMethod · 0.80
test_can_pass_in_axisMethod · 0.80
test_can_pass_in_axisMethod · 0.80
test_can_pass_in_axisMethod · 0.80

Calls 1

has_dataMethod · 0.80

Tested by

no test coverage detected