Skip to content

Commit 6ec1da2

Browse files
keewisdcherian
authored andcommitted
More doc fixes (#3333)
* fix a code section being hidden * fix the code samples of DataArray.plot * fix a cross-reference
1 parent a5fe56a commit 6ec1da2

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

doc/api.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This page provides an auto-generated summary of xarray's API. For more details
88
and examples, refer to the relevant chapters in the main part of the
99
documentation.
1010

11-
See also: :ref:`public api`_.
11+
See also: :ref:`public api`
1212

1313
Top-level functions
1414
===================

doc/reshaping.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ represented by a :py:class:`pandas.MultiIndex` object. These methods are used
156156
like this:
157157

158158
.. ipython:: python
159+
159160
data = xr.Dataset(
160161
data_vars={'a': (('x', 'y'), [[0, 1, 2], [3, 4, 5]]),
161162
'b': ('x', [6, 7])},

xarray/core/dataarray.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2558,10 +2558,12 @@ def plot(self) -> _PlotMethods:
25582558
>>> d = DataArray([[1, 2], [3, 4]])
25592559
25602560
For convenience just call this directly
2561+
25612562
>>> d.plot()
25622563
25632564
Or use it as a namespace to use xarray.plot functions as
25642565
DataArray methods
2566+
25652567
>>> d.plot.imshow() # equivalent to xarray.plot.imshow(d)
25662568
25672569
"""

0 commit comments

Comments
 (0)