pattern_clustering.html.values_to_colors

values_to_colors(values: iter, *cls, **kwargs) dict[source]

Maps some distinguishable values (possibly duplicated) with distinct HTML colors. :param values: An iterable containing arbitrary hashable objects. :type values: iter

Returns

A dictionary mapping each distinct value with a corresponding HTML color.