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 f0d62eb + 1aa5a83 commit 10aee8dCopy full SHA for 10aee8d
1 file changed
lib/matplotlib/colors.py
@@ -172,6 +172,8 @@ def to_rgba(c, alpha=None):
172
try:
173
rgba = _colors_full_map.cache[c, alpha]
174
except (KeyError, TypeError): # Not in cache, or unhashable.
175
+ rgba = None
176
+ if rgba is None: # Suppress exception chaining of cache lookup failure.
177
rgba = _to_rgba_no_colorcycle(c, alpha)
178
179
_colors_full_map.cache[c, alpha] = rgba
0 commit comments