CmapDict.__getitem__¶
-
CmapDict.
__getitem__
(key)[source]¶ Retrieve the case-insensitive colormap name. If the name ends in
'_r'
, returns the result ofcmap.reversed()
for the colormap with namekey[:-2]
. Also returns reversed diverging colormaps when their “reversed name” is requested – for example,'BuRd'
is equivalent to'RdBu_r'
.