INNER CODE UNIT · Python

__del__

annoviko/pyclustering · pyclustering/cluster/__init__.py:158

    def __del__(self):
        """!
        @brief Close matplotlib figure that was used for visualization.

        """
        if self.__figure is not None:
            plt.close(self.__figure)


    def append_cluster(self, cluster, data=None, marker='.', markersize=None, color=None):
        """!
        @brief Appends cluster for visualization.

        @param[in] cluster (array_like): cluster that 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 cluster on the canvas.
        @param[in] markersize (uint): Size of marker.
        @param[in] color (string): Color of marker.

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…