Skip to content

Commit

Permalink
More doc fixes (#3333)
Browse files Browse the repository at this point in the history
* fix a code section being hidden

* fix the code samples of DataArray.plot

* fix a cross-reference
  • Loading branch information
keewis authored and dcherian committed Sep 23, 2019
1 parent a5fe56a commit 6ec1da2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
===================
Expand Down
1 change: 1 addition & 0 deletions doc/reshaping.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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])},
Expand Down
2 changes: 2 additions & 0 deletions xarray/core/dataarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
"""
Expand Down

0 comments on commit 6ec1da2

Please sign in to comment.