python3 案例分享-seaborn demo

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
from pandas import Series,DataFrame
import seaborn as sns
from scipy import stats
np.random.randn(144)
np.set_printoptions(precision=3)
d = np.random.laplace(loc=15, scale=3, size=500)
sns.set_style('darkgrid')
sns.distplot(d)
sns.distplot(d, fit=stats.laplace, kde=False)
plt.show()

效果图:

python3 案例分享-seaborn demo_第1张图片

转载于:https://my.oschina.net/lyleluo/blog/3056597

你可能感兴趣的:(python3 案例分享-seaborn demo)