ColormapDatabase

class ColormapDatabase(kwargs)[source]

Bases: collections.abc.MutableMapping, 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, value)

Store the colormap under its lowercase name.