From d04f43047d3bc6a1087c68fbad15d54ce3df7033 Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Sun, 28 Jul 2019 13:37:39 -0400 Subject: [PATCH] Backport PR #14901: Fix GH14900: numpy 1.17.0 breaks test_colors. --- lib/matplotlib/colors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/colors.py b/lib/matplotlib/colors.py index 32e282f6f563..49722ff71fbf 100644 --- a/lib/matplotlib/colors.py +++ b/lib/matplotlib/colors.py @@ -1682,7 +1682,7 @@ def shade_normals(self, normals, fraction=1.): # visually appears better than a "hard" clip. intensity -= imin intensity /= (imax - imin) - intensity = np.clip(intensity, 0, 1, intensity) + intensity = np.clip(intensity, 0, 1) return intensity 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