Skip to content

Commit 1f3d49b

Browse files
committed
formatting
1 parent 31019d8 commit 1f3d49b

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

xarray/plot/facetgrid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ def map_dataarray_line(self, plotfunc, x=None, y=None, hue=None, **kwargs):
281281
282282
"""
283283
from .plot import (_infer_line_data, _infer_scatter_data,
284-
line, dataset_scatter)
284+
line, dataset_scatter)
285285

286286
add_legend = kwargs.pop('add_legend', True)
287287
kwargs['add_legend'] = False

xarray/plot/plot.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -985,7 +985,7 @@ def pcolormesh(x, y, z, ax, infer_intervals=None, **kwargs):
985985

986986
def dataset_scatter(ds, x=None, y=None, hue=None, col=None, row=None,
987987
col_wrap=None, sharex=True, sharey=True, aspect=None,
988-
size=None, subplot_kws=None, add_legend=True, **kwargs):
988+
size=None, subplot_kws=None, add_legend=True, **kwargs):
989989
if col or row:
990990
ax = kwargs.pop('ax', None)
991991
figsize = kwargs.pop('figsize', None)
@@ -996,14 +996,17 @@ def dataset_scatter(ds, x=None, y=None, hue=None, col=None, row=None,
996996
if size is None:
997997
size = 3
998998
elif figsize is not None:
999-
raise ValueError('cannot provide both `figsize` and `size` arguments')
999+
raise ValueError('cannot provide both `figsize` and'
1000+
'`size` arguments')
10001001

10011002
g = FacetGrid(data=ds, col=col, row=row, col_wrap=col_wrap,
10021003
sharex=sharex, sharey=sharey, figsize=figsize,
10031004
aspect=aspect, size=size, subplot_kws=subplot_kws)
1004-
return g.map_dataarray_line(x=x, y=y, hue=hue, plotfunc=dataset_scatter, **kwargs)
1005+
return g.map_dataarray_line(x=x, y=y, hue=hue,
1006+
plotfunc=dataset_scatter, **kwargs)
10051007

1006-
xplt, yplt, hueplt, xlabel, ylabel, huelabel = _infer_scatter_data(ds, x, y, hue)
1008+
xplt, yplt, hueplt, xlabel, ylabel, huelabel = _infer_scatter_data(ds, x,
1009+
y, hue)
10071010

10081011
figsize = kwargs.pop('figsize', None)
10091012
ax = kwargs.pop('ax', None)

0 commit comments

Comments
 (0)