ColormapDatabase¶
- class ColormapDatabase(kwargs)[source]¶
Bases:
dict
Dictionary 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, item)Store the colormap under its lowercase name.