From f20975ab9b8c186955ff6a9fecad64ccc161c134 Mon Sep 17 00:00:00 2001 From: Keewis Date: Sun, 22 Sep 2019 19:42:00 +0200 Subject: [PATCH 1/3] fix a code section being hidden --- doc/reshaping.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/reshaping.rst b/doc/reshaping.rst index b3abfc5afb0..51202f9be41 100644 --- a/doc/reshaping.rst +++ b/doc/reshaping.rst @@ -156,6 +156,7 @@ represented by a :py:class:`pandas.MultiIndex` object. These methods are used like this: .. ipython:: python + data = xr.Dataset( data_vars={'a': (('x', 'y'), [[0, 1, 2], [3, 4, 5]]), 'b': ('x', [6, 7])}, From 3b7e1d4469cae30a1e48d0500699b9fa7dafed62 Mon Sep 17 00:00:00 2001 From: Keewis Date: Sun, 22 Sep 2019 19:42:34 +0200 Subject: [PATCH 2/3] 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) """ From ee9a05eb8e57429c90cea9075608c75ae10cc525 Mon Sep 17 00:00:00 2001 From: Keewis Date: Sun, 22 Sep 2019 19:43:55 +0200 Subject: [PATCH 3/3] fix a cross-reference --- doc/api.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api.rst b/doc/api.rst index 9b3d6dfaf95..256a1dbf3af 100644 --- a/doc/api.rst +++ b/doc/api.rst @@ -8,7 +8,7 @@ This page provides an auto-generated summary of xarray's API. For more details and examples, refer to the relevant chapters in the main part of the documentation. -See also: :ref:`public api`_. +See also: :ref:`public api` Top-level functions ===================