Skip to content

Commit e6dbe0a

Browse files
committed
Fix GH14900: numpy 1.17.0 breaks test_colors.
1 parent 8d3e817 commit e6dbe0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1724,7 +1724,7 @@ def shade_normals(self, normals, fraction=1.):
17241724
# visually appears better than a "hard" clip.
17251725
intensity -= imin
17261726
intensity /= (imax - imin)
1727-
intensity = np.clip(intensity, 0, 1, intensity)
1727+
intensity = np.clip(intensity, 0, 1)
17281728

17291729
return intensity
17301730

0 commit comments

Comments
 (0)