def _process_legend ( self ) : for l in self . handles [ 'plot' ] . legend : l . items [ : ] = [ ] l . border_line_alpha = 0 l . background_fill_alpha = 0
python matplotlib remove from legend
Disables legends if show_legend is disabled .
def _process_legend(self):
        """
        Disables legends if show_legend is disabled.
        """
        for l in self.handles['plot'].legend:
            l.items[:] = []
            l.border_line_alpha = 0
            l.background_fill_alpha = 0