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.
1 parent 045d959 commit 990860fCopy full SHA for 990860f
src/rsatoolbox/vis/icon.py
@@ -16,9 +16,9 @@
16
from rsatoolbox.rdm import RDMs
17
from rsatoolbox.util.pooling import pool_rdm
18
if hasattr(matplotlib.colormaps, 'get_cmap'):
19
- get_cmap = matplotlib.colormaps.get_cmap
+ mpl_get_cmap = matplotlib.colormaps.get_cmap
20
else:
21
- get_cmap = matplotlib.cm.get_cmap # drop:py37
+ mpl_get_cmap = matplotlib.cm.get_cmap # drop:py37
22
23
24
class Icon:
@@ -247,7 +247,7 @@ def recompute_final_image(self):
247
248
im = self._image
249
if self.cmap is not None:
250
- im = matplotlib.colormaps.get_cmap(self.cmap)(im)
+ im = mpl_get_cmap(self.cmap)(im)
251
im = PIL.Image.fromarray((im * 255).astype(np.uint8))
252
else: # we hope it is a PIL image or equivalent
253
0 commit comments