首页 > 其他 > 详细

plt.hist的使用

时间:2017-10-22 10:40:19      阅读:575      评论:0      收藏:0      [点我收藏+]
matplotlib.pyplot.hist(  
x, bins=10, range=None, normed=False,   
weights=None, cumulative=False, bottom=None,   
histtype=ubar, align=umid, orientation=uvertical,   
rwidth=None, log=False, color=None, label=None, stacked=False,   
hold=None, **kwargs)  

x : (n,) array or sequence of (n,) arrays

这个参数是指定每个bin(箱子)分布的数据,对应x轴

bins : integer or array_like, optional

这个参数指定bin(箱子)的个数,也就是总共有几条条状图

normed : boolean, optional

If True, the first element of the return tuple will be the counts normalized to form a probability density, i.e.,n/(len(x)`dbin)

这个参数指定密度,也就是每个条状图的占比例比,默认为1

color : color or array_like of colors or None, optional

这个指定条状图的颜色

plt.hist的使用

原文:http://www.cnblogs.com/imageSet/p/7707565.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!