diff --git a/xarray/plot/facetgrid.py b/xarray/plot/facetgrid.py index ce94d69b98c..d2016e30679 100644 --- a/xarray/plot/facetgrid.py +++ b/xarray/plot/facetgrid.py @@ -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 diff --git a/xarray/tests/test_plot.py b/xarray/tests/test_plot.py index 07ee65645da..b34880f3e6b 100644 --- a/xarray/tests/test_plot.py +++ b/xarray/tests/test_plot.py @@ -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'