MCPcopy Create free account
hub / github.com/holoviz/hvplot / test_dataarray_2d_with_title

Method test_dataarray_2d_with_title

hvplot/tests/testoptions.py:671–675  ·  view source on GitHub ↗
(self, da, backend)

Source from the content-addressed store, hash-verified

669@pytest.mark.usefixtures('load_xarray_accessor')
670class TestXarrayTitle:
671 def test_dataarray_2d_with_title(self, da, backend):
672 da_sel = da.sel(time=0, band=0)
673 plot = da_sel.hvplot() # Image plot
674 opts = Store.lookup_options(backend, plot, 'plot')
675 assert opts.kwargs['title'] == 'time = 0, band = 0'
676
677 def test_dataarray_1d_with_title(self, da, backend):
678 da_sel = da.sel(time=0, band=0, x=0)

Callers

nothing calls this directly

Calls 2

selMethod · 0.80
hvplotMethod · 0.80

Tested by

no test coverage detected