Skip to main content

Histogram in Seaborn

data = np.random.multivariate_normal([0, 0], [[5, 2], [2, 2]], size=2000)
data = pd.DataFrame(data, columns=[‘x’, ‘y’])

for col in ‘xy’:
plt.hist(data[col], normed=True, alpha=0.5)

Leave a Reply

Your email address will not be published. Required fields are marked *