CmapDict¶
-
class
CmapDict(kwargs)[source]¶ Bases:
dictDictionary subclass used to replace the
matplotlib.cm.cmap_dcolormap dictionary. See__getitem__and__setitem__for details.- Parameters
kwargs (dict-like) – The source dictionary.
Methods Summary
__getitem__(key)Retrieve the case-insensitive colormap name.
__setitem__(key, item)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.