ColorDatabase¶
- class ColorDatabase(mapping=None)[source]¶
Bases:
MutableMapping,dictDictionary subclass used to replace the builtin matplotlib color database. See
__getitem__for details.- Parameters
mapping (dict-like, optional) – The colors.
Methods Summary
__getitem__(key)Get a color.
__setitem__(key, value)Add a color.