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 colormap associated with the sanitized key name.
__setitem__(key, item[, sort])Store the colormap under its lowercase name.
get(key, *args)Retrieve the sanitized colormap name.
pop(key, *args)Pop the sanitized colormap name.
update(*args, **kwargs)Update the dictionary with sanitized colormap names.