pyclustering.utils.color.color Class Reference

Consists titles of colors that are used by pyclustering for visualization. More...

Static Public Member Functions

def get_color (sequential_index)
 Returns color using round robin to avoid out of range exception. More...
 

Static Public Attributes

list TITLES
 List of color titles that are used by pyclustering for visualization. More...
 

Detailed Description

Consists titles of colors that are used by pyclustering for visualization.

Definition at line 27 of file color.py.

Member Function Documentation

◆ get_color()

def pyclustering.utils.color.color.get_color (   sequential_index)
static

Returns color using round robin to avoid out of range exception.

Parameters
[in]sequential_index(uint): Index that should be converted to valid color index.
Returns
(uint) Color from list color.TITLES.

Definition at line 34 of file color.py.

Member Data Documentation

◆ TITLES

list pyclustering.utils.color.color.TITLES
static
Initial value:
= [ 'red', 'blue', 'darkgreen', 'gold', 'violet',
'deepskyblue', 'darkgrey', 'lightsalmon', 'deeppink', 'yellow',
'black', 'mediumspringgreen', 'orange', 'darkviolet', 'darkblue',
'silver', 'lime', 'pink', 'brown', 'bisque',
'dimgray', 'firebrick', 'darksalmon', 'chartreuse', 'skyblue',
'purple', 'fuchsia', 'palegoldenrod', 'coral', 'hotpink',
'gray', 'tan', 'crimson', 'teal', 'olive']

List of color titles that are used by pyclustering for visualization.

Definition at line 47 of file color.py.


The documentation for this class was generated from the following file: