INNER CODE UNIT · Python
__init__
annoviko/pyclustering · pyclustering/cluster/__init__.py:147
def __init__(self):
"""!
@brief Constructs cluster visualizer for multidimensional data.
@details The visualizer is suitable more data whose dimension is bigger than 3.
"""
self.__clusters = []
self.__figure = None
self.__grid_spec = None
def __del__(self):
"""!
@brief Close matplotlib figure that was used for visualization.
"""
if self.__figure is not None:
plt.close(self.__figure)