def plot(self): """Access plotting functions. >>> d = DataArray([[1, 2], [3, 4]]) For convenience just call this directly >>> d.plot() Or use it as a namespace to use xarray.plot functions as DataArray methods >>> d.plot.imshow() # equivalent to xarray.plot.imshow(d) """ return _PlotMethods(self._obj)
def plot(self) -> _PlotMethods: """Access plotting functions. For convenience just call this directly: * dset.efth.spec.plot() * dset.spec.plot() Or use it as a namespace to use wavespectra.plot functions as: * dset.efth.spec.plot.contourf() * dset.spec.plot.contourf() Which is equivalent to wavespectra.plot.imshow(dset.efth) """ return _PlotMethods(self._obj)