ColormapDatabase¶
- class ColormapDatabase(kwargs)[source]¶
Bases:
MutableMapping,dictDictionary subclass used to replace the matplotlib colormap registry. 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, value)Store the colormap under its lowercase name.