Skip to content

Commit 667a100

Browse files
authored
Merge pull request #14901 from bingyao/fix_tests_with_numpy_1_17
Fix: numpy 1.17.0 breaks test_colors. closes #14900
2 parents 8d3e817 + e6dbe0a commit 667a100

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
@@ -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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy