Skip to content

Commit 3d40dab

Browse files
author
dcherian
committed
Scatter docs
1 parent 9b9478b commit 3d40dab

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

doc/api.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -578,6 +578,7 @@ Plotting
578578
plot.hist
579579
plot.imshow
580580
plot.line
581+
plot.scatter
581582
plot.pcolormesh
582583
plot.FacetGrid
583584

xarray/plot/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from __future__ import print_function
44
from .plot import (plot, line, step, contourf, contour,
55
hist, imshow, pcolormesh)
6+
from .dataset_plot import scatter
67

78
from .facetgrid import FacetGrid
89

@@ -16,4 +17,5 @@
1617
'imshow',
1718
'pcolormesh',
1819
'FacetGrid',
20+
'scatter',
1921
]

xarray/plot/dataset_plot.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,10 @@ def scatter(ds, x, y, hue=None, hue_style=None, col=None, row=None,
9797
norm=None, infer_intervals=None, center=None, levels=None,
9898
robust=None, colors=None, extend=None, cmap=None, **kwargs):
9999
'''
100-
Inputs
101-
------
100+
Scatter Dataset variables against each other.
101+
102+
Input
103+
-----
102104
103105
ds : Dataset
104106
x, y : string

xarray/plot/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22
Use this module directly:
33
import xarray.plot as xplt
44
5-
Or use the methods on a DataArray:
5+
Or use the methods on a DataArray or Dataset:
66
DataArray.plot._____
7+
Dataset.plot._____
78
"""
89
from __future__ import absolute_import, division, print_function
910

0 commit comments

Comments
 (0)