Pair Plot in Seaborn


In [1]:
%load_ext watermark
%watermark -a 'Hideki Tanaka' -u -d -v -p matplotlib,numpy,pandas,seaborn


Hideki Tanaka 
last updated: 2016-02-23 

CPython 3.5.1
IPython 4.1.1

matplotlib 1.5.1
numpy 1.10.4
pandas 0.17.1
seaborn 0.7.0

In [2]:
%matplotlib inline

In [3]:
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import seaborn as sns

In [4]:
np.random.seed(0)

In [5]:
n = 500
d = {'x': np.random.randn(n),
     'y': np.random.randn(n),
     'z': np.random.randn(n)}

In [6]:
df = pd.DataFrame(d)

In [7]:
fig = sns.pairplot(df)



In [8]:
fig.savefig('../images/sns_pairplot.png', dpi=80)