Skip to content

Commit

Permalink
fix the code samples of DataArray.plot
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Sep 22, 2019
1 parent f20975a commit 3b7e1d4
Showing 1 changed file with 2 additions and 0 deletions.
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 3b7e1d4

Please sign in to comment.