Skip to content

Commit c44d8d0

Browse files
committed
pep8
1 parent 14d0284 commit c44d8d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

xarray/plot/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ def _determine_cmap_params(plot_data, vmin=None, vmax=None, cmap=None,
266266
extend = _determine_extend(calc_data, vmin, vmax)
267267

268268
if ((levels is not None or isinstance(norm, mpl.colors.BoundaryNorm))
269-
and not isinstance(cmap, mpl.colors.Colormap)):
269+
and not isinstance(cmap, mpl.colors.Colormap)):
270270
cmap, newnorm = _build_discrete_cmap(cmap, levels, extend, filled)
271271
norm = newnorm if norm is None else norm
272272

xarray/tests/test_plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,8 @@ def test_cmap_sequential_option(self):
538538
assert cmap_params['cmap'] == 'magma'
539539

540540
def test_do_nothing_if_provided_cmap(self):
541-
cmap = mpl.colors.LinearSegmentedColormap.from_list('name', ['r', 'g', 'b'])
541+
cmap = mpl.colors.LinearSegmentedColormap.from_list(
542+
'name', ['r', 'g', 'b'])
542543
cmap_params = _determine_cmap_params(self.data, cmap=cmap)
543544
assert cmap_params['cmap'] is cmap
544545

0 commit comments

Comments
 (0)