Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d46e69a + 790c210 commit 24a7231Copy full SHA for 24a7231
1 file changed
lib/matplotlib/cm.py
@@ -252,7 +252,7 @@ def to_rgba(self, x, alpha=None, bytes=False, norm=True):
252
else:
253
raise ValueError("third dimension must be 3 or 4")
254
if xx.dtype.kind == 'f':
255
- if norm and xx.max() > 1 or xx.min() < 0:
+ if norm and (xx.max() > 1 or xx.min() < 0):
256
raise ValueError("Floating point image RGB values "
257
"must be in the 0..1 range.")
258
if bytes:
0 commit comments