8000 Merge pull request #14910 from meeseeksmachine/auto-backport-of-pr-14… · matplotlib/matplotlib@1230e83 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1230e83

Browse files
authored
Merge pull request #14910 from meeseeksmachine/auto-backport-of-pr-14901-on-v3.1.x
Backport PR #14901 on branch v3.1.x (Fix GH14900: numpy 1.17.0 breaks test_colors.)
2 parents dec7c67 + 8b398bf commit 1230e83

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