INNER CODE UNIT · Python
set_canvas_title
annoviko/pyclustering · pyclustering/cluster/__init__.py:614
def set_canvas_title(self, text, canvas=0):
"""!
@brief Set title for specified canvas.
@param[in] text (string): Title for the canvas.
@param[in] canvas (uint): Index of the canvas where title should be displayed.
"""
if canvas > self.__number_canvases:
raise ValueError("Canvas with index '%d' does not exists (total amount of canvases: '%d')." %
canvas, self.__number_canvases)
self.__canvas_titles[canvas] = text
def get_cluster_color(self, index_cluster, index_canvas):
"""!