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

Method test_facetgrid_colorbar

xarray/tests/test_plot.py:2483–2494  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2481
2482 @pytest.mark.slow
2483 def test_facetgrid_colorbar(self) -> None:
2484 a = easy_array((10, 15, 4))
2485 d = DataArray(a, dims=["y", "x", "z"], name="foo")
2486
2487 d.plot.imshow(x="x", y="y", col="z")
2488 assert 1 == len(find_possible_colorbars())
2489
2490 d.plot.imshow(x="x", y="y", col="z", add_colorbar=True)
2491 assert 1 == len(find_possible_colorbars())
2492
2493 d.plot.imshow(x="x", y="y", col="z", add_colorbar=False)
2494 assert 0 == len(find_possible_colorbars())
2495
2496 @pytest.mark.slow
2497 def test_facetgrid_polar(self) -> None:

Callers

nothing calls this directly

Calls 4

DataArrayClass · 0.90
easy_arrayFunction · 0.85
find_possible_colorbarsFunction · 0.85
imshowMethod · 0.80

Tested by

no test coverage detected