(self)
| 2383 | |
| 2384 | @pytest.mark.slow |
| 2385 | def test_can_set_vmin_vmax(self) -> None: |
| 2386 | vmin, vmax = 50.0, 1000.0 |
| 2387 | expected = np.array((vmin, vmax)) |
| 2388 | self.g.map_dataarray(xplt.imshow, "x", "y", vmin=vmin, vmax=vmax) |
| 2389 | |
| 2390 | for image in plt.gcf().findobj(mpl.image.AxesImage): |
| 2391 | assert isinstance(image, mpl.image.AxesImage) |
| 2392 | clim = np.array(image.get_clim()) |
| 2393 | assert np.allclose(expected, clim) |
| 2394 | |
| 2395 | @pytest.mark.slow |
| 2396 | def test_vmin_vmax_equal(self) -> None: |
nothing calls this directly
no test coverage detected