10000 Backport PR #14901: Fix GH14900: numpy 1.17.0 breaks test_colors. · matplotlib/matplotlib@8b398bf · GitHub
[go: up one dir, main page]

Skip to content

Commit 8b398bf

Browse files
tacaswellMeeseeksDev[bot]
authored andcommitted
Backport PR #14901: Fix GH14900: numpy 1.17.0 breaks test_colors.
1 parent dec7c67 commit 8b398bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1685,7 +1685,7 @@ def shade_normals(self, normals, fraction=1.):
16851685
# visually appears better than a "hard" clip.
16861686
intensity -= imin
16871687
intensity /= (imax - imin)
1688-
intensity = np.clip(intensity, 0, 1, intensity)
1688+
intensity = np.clip(intensity, 0, 1)
16891689

16901690
return intensity
16911691

0 commit comments

Comments
 (0)
0