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
Fewer lines for 2019 searchers:
import matplotlib.pyplot as plt import seaborn as sns df = sns.load_dataset('iris') sns_plot = sns.pairplot(df, hue='species', height=2.5) plt.savefig('output.png')
UPDATE NOTE: size was changed to height.
size
height