Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
yohai committed Jul 16, 2018
1 parent ff27ef5 commit 3cee41d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions xarray/plot/facetgrid.py
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,8 @@ def map_dataarray_line(self, x=None, y=None, hue=None, **kwargs):
self._mappables.append(mappable)

_, _, hueplt, xlabel, ylabel, huelabel = _infer_line_data(
darray=self.data.loc[self.name_dicts.flat[0]],
x=x, y=y, hue=hue)
darray=self.data.loc[self.name_dicts.flat[0]],
x=x, y=y, hue=hue)

self._hue_var = hueplt
self._hue_label = huelabel
Expand Down
6 changes: 3 additions & 3 deletions xarray/tests/test_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -1625,9 +1625,9 @@ def test_wrong_num_of_dimensions(self):
class TestScatterPlots(PlotTestCase):
def setUp(self):
das = [DataArray(np.random.randn(3, 3, 4, 4),
dims=['x', 'row', 'col', 'hue'],
coords=[range(k) for k in [3, 3, 4, 4]])
for _ in [1, 2]]
dims=['x', 'row', 'col', 'hue'],
coords=[range(k) for k in [3, 3, 4, 4]])
for _ in [1, 2]]
ds = Dataset({'A': das[0], 'B': das[1]})
ds.hue.name = 'huename'
ds.hue.attrs['units'] = 'hunits'
Expand Down

0 comments on commit 3cee41d

Please sign in to comment.