Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8c150d1

Browse filesBrowse files
committed
minor fixes to colors.py
1 parent d11d47c commit 8c150d1
Copy full SHA for 8c150d1

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎lib/matplotlib/colors.py

Copy file name to clipboardExpand all lines: lib/matplotlib/colors.py
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.