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 5f922ff + 0ee8e81 commit c44ae00Copy full SHA for c44ae00
lib/matplotlib/colors.py
@@ -949,7 +949,7 @@ def with_alpha(self, alpha):
949
if not isinstance(alpha, Real):
950
raise TypeError(f"'alpha' must be numeric or None, not {type(alpha)}")
951
if not 0 <= alpha <= 1:
952
- ValueError("'alpha' must be between 0 and 1, inclusive")
+ raise ValueError("'alpha' must be between 0 and 1, inclusive")
953
new_cm = self.copy()
954
if not new_cm._isinit:
955
new_cm._init()
0 commit comments