Skip to content

Commit 20fa909

Browse files
authored
Merge pull request #14909 from meeseeksmachine/auto-backport-of-pr-14901-on-v2.2.x
Backport PR #14901 on branch v2.2.x (Fix GH14900: numpy 1.17.0 breaks test_colors.)
2 parents 353f432 + d04f430 commit 20fa909

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
@@ -1682,7 +1682,7 @@ def shade_normals(self, normals, fraction=1.):
16821682
# visually appears better than a "hard" clip.
16831683
intensity -= imin
16841684
intensity /= (imax - imin)
1685-
intensity = np.clip(intensity, 0, 1, intensity)
1685+
intensity = np.clip(intensity, 0, 1)
16861686

16871687
return intensity
16881688

0 commit comments

Comments
 (0)