Skip to content
Advertisement

How to move the legend in Seaborn FacetGrid outside of the plot

I have the following code:

JavaScript

This results in the following plot:

enter image description here

How can I move the legend outside of the plot?

Advertisement

Answer

According to mwaskom’s comment above, this is a bug in OS X. Indeed switching to another backend solves the issue.

For instance, I put this into my matplotlibrc:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement