I tried the following code (test_seaborn.py):
test_seaborn.py
import matplotlib matplotlib.use(\'Agg\') import matplotlib.pyplot as plt matplotlib.style.use(\'g
Just FYI, the below command worked in seaborn 0.8.1 so I guess the initial answer is still valid.
sns_plot = sns.pairplot(data, hue='species', size=3) sns_plot.savefig("output.png")