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 of cmap.reversed() is returned for the colormap registered under the name key[:-2]. If it ends in '_shifted', the result of cmap.shifted(180) is returned for the colormap registered under the name cmap[:-8]. Reversed diverging colormaps can be requested with their “reversed” name – for example, 'BuRd' is equivalent to 'RdBu_r'.