MCPcopy
hub / github.com/pydata/xarray / test_facetgrid_single_contour

Function test_facetgrid_single_contour

xarray/tests/test_plot.py:3264–3273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3262
3263@requires_matplotlib
3264def 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

Callers

nothing calls this directly

Calls 4

figure_contextFunction · 0.85
arangeMethod · 0.80
contourMethod · 0.80
concatMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…