PairGrid.
add_legend
(self, legend_data=None, title=None, label_order=None, adjust_subtitles=False, **kwargs)¶Draw a legend, maybe placing it outside axes and resizing the figure.
Dictionary mapping label names (or two-element tuples where the
second element is a label name) to matplotlib artist handles. The
default reads from self._legend_data
.
Title for the legend. The default reads from self._hue_var
.
The order that the legend entries should appear in. The default
reads from self.hue_names
.
If True, modify entries with invisible artists to left-align the labels and set the font size to that of a title.
Other keyword arguments are passed to the underlying legend methods on the Figure or Axes object.
Returns self for easy chaining.