def finalize(self, **kwargs):
        """
        Finalize executes any subclass-specific axes finalization steps.
        The user calls poof and poof calls finalize.

        Parameters
        ----------
        kwargs: generic keyword arguments.
        """
        # Add the title to the plot
        self.set_title('Residuals for {} Model'.format(self.name))

        # Set the legend with full opacity patches using manual legend
        manual_legend(
            self, self._labels, self._colors, loc='best', frameon=True
        )

        # Create a full line across the figure at zero error.
        self.ax.axhline(y=0, c=self.colors['line'])

        # Set the axes labels
        self.ax.set_ylabel('Residuals')
        self.ax.set_xlabel("Predicted Value")

        # Finalize the histogram axes
        if self.hist:
            self.hax.axhline(y=0, c=self.colors['line'])
            self.hax.set_xlabel("Distribution")
def finalize ( self , ** kwargs ) : self . set_title ( 'Residuals for {} Model' . format ( self . name ) ) manual_legend ( self , self . _labels , self . _colors , loc = 'best' , frameon = True ) self . ax . axhline ( y = 0 , c = self . colors [ 'line' ] ) self . ax . set_ylabel ( 'Residuals' ) self . ax . set_xlabel ( "Predicted Value" ) if self . hist : self . hax . axhline ( y = 0 , c = self . colors [ 'line' ] ) self . hax . set_xlabel ( "Distribution" )
Finalize executes any subclass-specific axes finalization steps.
        The user calls poof and poof calls finalize.

        Parameters
        ----------
        kwargs: generic keyword arguments.