Skip to content

Commit 272a861

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent c109abd commit 272a861

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

xarray/plot/utils.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,7 @@ def _determine_cmap_params(
248248
isinstance(levels, Iterable) and levels[0] * levels[-1] < 0
249249
)
250250
# kwargs not specific about divergent or not: infer defaults from data
251-
divergent = (
252-
(vmin < 0 < vmax) or not center_is_none or levels_are_divergent
253-
)
251+
divergent = (vmin < 0 < vmax) or not center_is_none or levels_are_divergent
254252
else:
255253
divergent = False
256254

0 commit comments

Comments
 (0)