Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8c150d1

Browse files
committed
minor fixes to colors.py
1 parent d11d47c commit 8c150d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/colors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,7 @@ def __init__(self, name, colormaps, combination_mode):
12831283
raise ValueError("A MultivarColormap must have more than one colormap.")
12841284
colormaps = list(colormaps) # ensure cmaps is a list, i.e. not a tuple
12851285
for i, cmap in enumerate(colormaps):
1286-
if not issubclass(type(cmap), Colormap):
1286+
if not isinstance(cmap, Colormap):
12871287
if isinstance(cmap, str):
12881288
colormaps[i] = mpl.colormaps[cmap]
12891289
else:
@@ -1925,7 +1925,7 @@ def _clip(self, X):
19251925
if not X_part.dtype.kind == "f":
19261926
raise NotImplementedError(
19271927
"Circular bivariate colormaps are only"
1928-
" implemented for use with with floats, not integers")
1928+
" implemented for use with with floats")
19291929
radii_sqr = (X[0] - 0.5)**2 + (X[1] - 0.5)**2
19301930
mask_outside = radii_sqr > 0.25
19311931
if self.shape == 'circle':

0 commit comments

Comments
 (0)