From 3b7e1d4469cae30a1e48d0500699b9fa7dafed62 Mon Sep 17 00:00:00 2001 From: Keewis Date: Sun, 22 Sep 2019 19:42:34 +0200 Subject: [PATCH] fix the code samples of DataArray.plot --- xarray/core/dataarray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xarray/core/dataarray.py b/xarray/core/dataarray.py index add2b1b6c01..e63b6c9975f 100644 --- a/xarray/core/dataarray.py +++ b/xarray/core/dataarray.py @@ -2558,10 +2558,12 @@ def plot(self) -> _PlotMethods: >>> 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) """