<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def finalize(self):
 """ Finalize the visualization to create an "origin grid" feel instead of the default matplotlib feel. Set the title, remove spines, and label the grid with components. This function also adds a legend from the sizes if required. """

        # Set the default title if a user hasn't supplied one
        self.set_title("{} Intercluster Distance Map (via {})".format(
            self.estimator.__class__.__name__, self.embedding.upper()
        ))

        # Create the origin grid and minimalist display
        self.ax.set_xticks([0])
        self.ax.set_yticks([0])
        self.ax.set_xticklabels([])
        self.ax.set_yticklabels([])
        self.ax.set_xlabel("PC2")
        self.ax.set_ylabel("PC1")

        # Make the legend by creating an inset axes that shows relative sizing
        # based on the scoring metric supplied by the user.
        if self.legend:
            self._make_size_legend()

        return self.ax