# 行易软件

 博客园 首页 新随笔 联系 订阅 管理

https://www.cnblogs.com/quietwalk/p/8243536.html

https://www.cnblogs.com/luckyboy314/p/11715643.html

https://blog.csdn.net/jiangjiang_jian/article/details/80664709

https://blog.csdn.net/qq_43613819/article/details/115637728

https://blog.csdn.net/weixin_43170073/article/details/90383317

https://blog.csdn.net/qq_36056219/article/details/112118602

https://cloud.tencent.com/developer/article/1178417

https://blog.csdn.net/weixin_48615832/article/details/108188652

import numpy as np
import scipy.stats as stats
import matplotlib.pyplot as plt

h = [186, 176, 158, 180, 186, 168, 168, 164, 178, 170, 189, 195, 172,
187, 180, 186, 185, 168, 179, 178, 183, 179, 170, 175, 186, 159,
161, 178, 175, 185, 175, 162, 173, 172, 177, 175, 172, 177, 180]
h.sort()
hmean = np.mean(h)
hstd = np.std(h)
pdf = stats.norm.pdf(h, hmean, hstd)
print(pdf    )
plt.plot(h, pdf)
plt.show()

import numpy as np
import pandas as pd
import matplotlib.pyplot as plt

#构造一组随机数据
s = pd.DataFrame(np.random.randn(1000),columns = ['value'])
print(s)
#画散点图和直方图
fig = plt.figure(figsize = (10,6))
ax1.scatter(s.index, s.values)
plt.grid()

s.hist(bins=30,alpha = 0.5,ax = ax2)
s.plot(kind = 'kde', secondary_y=True,ax = ax2)
plt.grid()
plt.show()

import pandas as pd
import matplotlib.pyplot as plt
print(df)
plt.rcParams['font.sans-serif']='SimHei'
plt.rcParams['axes.unicode_minus']=False
#直方图
fig = plt.figure()
plt.show()