Seaborn
How to Move the Legend in Seaborn (sns.move_legend)
Use sns.move_legend to put a Seaborn legend outside the plot, above it in one row, or below a FacetGrid, without losing the hue title or handles.
Python plotting and visualization demystified
Use sns.move_legend to put a Seaborn legend outside the plot, above it in one row, or below a FacetGrid, without losing the hue title or handles.