Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d83ba6a

Browse files
committed
Code syntax correction.
1 parent 175fcbc commit d83ba6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/colors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1365,9 +1365,9 @@ def shade(self, data, cmap, vmin=None, vmax=None):
13651365
plot the shaded image with imshow.
13661366
"""
13671367

1368-
if vmin == None:
1368+
if vmin is None:
13691369
vmin = data.min()
1370-
if vmax == None:
1370+
if vmax is None:
13711371
vmax = data.max()
13721372

13731373
rgb0 = cmap((data - vmin) / (vmax - vmin))

0 commit comments

Comments
 (0)