Skip to content

Commit 579581f

Browse files
committed
Apply some final linting corrections in matplotlib.cm
1 parent 035ce08 commit 579581f

File tree

1 file changed

+3
-2
lines changed
  • packages/basemap/src/mpl_toolkits/basemap

1 file changed

+3
-2
lines changed

packages/basemap/src/mpl_toolkits/basemap/cm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ def _revcmap(data):
2626
val = list(val)
2727
valrev = val[::-1]
2828
valnew = []
29-
for a, b, c in valrev:
30-
valnew.append((1.0 - a, b, c))
29+
for xval, color0, color1 in valrev:
30+
valnew.append((1.0 - xval, color0, color1))
3131
data_r[key] = valnew
3232
return data_r
3333

3434

3535
# Create the dictionaries of segment data for each colormap.
36+
# pylint: disable=too-many-lines
3637
_GMT_drywet_data = {
3738
"blue": [
3839
(0.0, 0.164705887437, 0.164705887437),

0 commit comments

Comments
 (0)