![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
计算统计学
文章平均质量分 72
43118
JonyChan技术学习过程中的总结
展开
-
plt.legend()画图例的几种例子
参考文档链接:https://pythonspot.com/matplotlib-legend/1.Place the legend insideTo place the legend inside, simply call legend():import matplotlib.pyplot as pltimport numpy as npy = [2,4,6,8,10,12,14,16,18,20]y2 = [10,11,12,13,14,15,16,17,18,19]x = np.ara原创 2021-03-06 10:09:08 · 2429 阅读 · 0 评论 -
计算统计学的相关实验代码
正态分布随机数生成import numpy as npimport matplotlib.pyplot as pltnp.random.seed(0)mean = 1std = 3series = np.random.normal(mean, std,1000)#bins: The edges of the bins_, bins, _ = plt.hist(series, 30, density=True) #param(rbins)=30,it defines the 30 e.原创 2021-03-03 18:50:24 · 1506 阅读 · 0 评论