In [2]:
import numpy as np
import seaborn as sns
import pandas as pd

mean, cov = [0, 1], [(1, .5),  (.5, 1)]
data = np.random.multivariate_normal(mean, cov, 200)
df = pd.DataFrame(data, columns=["x", "y"])
sns.jointplot(x="x", y="y", kind="kde", data=df)
sns.plt.show()


/Users/takaaki-suzuki/.pyenv/versions/anaconda3-2.2.0/lib/python3.4/site-packages/matplotlib/tight_layout.py:222: UserWarning: tight_layout : falling back to Agg renderer
  warnings.warn("tight_layout : falling back to Agg renderer")
/Users/takaaki-suzuki/.pyenv/versions/anaconda3-2.2.0/lib/python3.4/site-packages/statsmodels/nonparametric/kdetools.py:20: VisibleDeprecationWarning: using a non-integer number instead of an integer will result in an error in the future
  y = X[:m/2+1] + np.r_[0,X[m/2+1:],0]*1j

In [ ]: