| 1172 | class TestDiscreteColorMap: |
| 1173 | @pytest.fixture(autouse=True) |
| 1174 | def setUp(self) -> Generator[None, None, None]: |
| 1175 | x = np.arange(0, 10, 2) |
| 1176 | y = np.arange(9, -7, -3) |
| 1177 | xy = np.dstack(np.meshgrid(x, y)) |
| 1178 | distance = np.linalg.norm(xy, axis=2) |
| 1179 | self.darray = DataArray(distance, list(zip(("y", "x"), (y, x), strict=True))) |
| 1180 | self.data_min = distance.min() |
| 1181 | self.data_max = distance.max() |
| 1182 | yield |
| 1183 | # Remove all matplotlib figures |
| 1184 | plt.close("all") |
| 1185 | |
| 1186 | @pytest.mark.slow |
| 1187 | def test_recover_from_seaborn_jet_exception(self) -> None: |