CmapDict.__getitem__¶
-
CmapDict.
__getitem__
(key)[source]¶ Retrieve the colormap associated with the sanitized key name. The key name is case insensitive. If it ends in
'_r'
, the result ofcmap.reversed()
is returned for the colormap registered under the namekey[:-2]
. If it ends in'_shifted'
, the result ofcmap.shifted(180)
is returned for the colormap registered under the namecmap[:-8]
. Reversed diverging colormaps can be requested with their “reversed” name – for example,'BuRd'
is equivalent to'RdBu_r'
.