ColorDatabase¶
- class ColorDatabase(mapping=None)[source]¶
Bases:
collections.abc.MutableMapping
,dict
Dictionary 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.