INNER CODE UNIT · Python
index_color
annoviko/pyclustering · pyclustering/cluster/__init__.py:185
index_color = len(self.__clusters) % len(color_list.TITLES)
color = color_list.TITLES[index_color]
cluster_descriptor = canvas_cluster_descr(cluster, data, marker, markersize, color)
self.__clusters.append(cluster_descriptor)
def append_clusters(self, clusters, data=None, marker='.', markersize=None):
"""!
@brief Appends list of cluster for visualization.
@param[in] clusters (array_like): List of clusters where each cluster may consist of indexes of objects from the data or object itself.
@param[in] data (array_like): If defines that each element of cluster is considered as a index of object from the data.
@param[in] marker (string): Marker that is used for displaying objects from clusters on the canvas.
@param[in] markersize (uint): Size of marker.
"""