Skip to content

Commit 6d8d9f2

Browse files
committed
Remove unnecessary norm typecheck in tripcolor().
The check was overly restrictive (str inputs work just fine per normal ScalarMappable API) and we can just let the TriMesh/PolyCollection ctors handle the validation.
1 parent e577962 commit 6d8d9f2

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

lib/matplotlib/tri/_tripcolor.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from matplotlib import _api
44
from matplotlib.collections import PolyCollection, TriMesh
5-
from matplotlib.colors import Normalize
65
from matplotlib.tri._triangulation import Triangulation
76

87

@@ -115,7 +114,6 @@ def tripcolor(ax, *args, alpha=1.0, norm=None, cmap=None, vmin=None,
115114
if 'antialiaseds' not in kwargs and ec.lower() == "none":
116115
kwargs['antialiaseds'] = False
117116

118-
_api.check_isinstance((Normalize, None), norm=norm)
119117
if shading == 'gouraud':
120118
if facecolors is not None:
121119
raise ValueError(

0 commit comments

Comments
 (0)