In [1]:
%load_ext watermark
%watermark -a 'Hideki Tanaka' -u -d -v -p matplotlib,numpy,pandas,seaborn
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)