()
| 3262 | |
| 3263 | @requires_matplotlib |
| 3264 | def test_facetgrid_single_contour() -> None: |
| 3265 | # regression test for GH3569 |
| 3266 | x, y = np.meshgrid(np.arange(12), np.arange(12)) |
| 3267 | z = xr.DataArray(np.hypot(x, y)) |
| 3268 | z2 = xr.DataArray(np.hypot(x, y) + 1) |
| 3269 | ds = xr.concat([z, z2], dim="time") |
| 3270 | ds["time"] = [0, 1] |
| 3271 | |
| 3272 | with figure_context(): |
| 3273 | ds.plot.contour(col="time", levels=[4], colors=["k"]) |
| 3274 | |
| 3275 | |
| 3276 | @requires_matplotlib |
nothing calls this directly
no test coverage detected
searching dependent graphs…