Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More doc fixes #3333

Merged
merged 3 commits into from
Sep 23, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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