class CmapDict(kwargs)[source]

Bases: dict

Dictionary subclass used to replace the colormap dictionary. See __getitem__ and __setitem__ for details.


kwargs (dict-like) – The source dictionary.

Methods Summary


Retrieve the case-insensitive colormap name.

__setitem__(key, item[, sort])

Stores the colormap under its lowercase name.

get(key, *args)

Retrieves sanitized key name.

pop(key, *args)

Pops sanitized key name.

update(*args, **kwargs)

Replicates dictionary update with sanitized key names.