CmapDict.__getitem__

CmapDict.__getitem__(key)[source]

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