class documentation

class ColorMap(Mapping[Hashable, RGB]):

View In Hierarchy

A mapping that assigns distinct RGB colors to hashable labels.

ColorMap generates and stores distinct colors for arbitrary hashable labels. Colors are lazily assigned on request using distinct_color_generator.

Method __getitem__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __len__ Undocumented
Instance Variable _color_dict Undocumented
Instance Variable _generator Undocumented
def __getitem__(self, label: Hashable) -> RGB:

Undocumented

def __init__(self):

Undocumented

def __iter__(self) -> Iterator[Hashable]:

Undocumented

def __len__(self) -> int:

Undocumented

_color_dict: dict[Hashable, RGB] =

Undocumented

_generator =

Undocumented