zoukankan      html  css  js  c++  java
  • plt.hist的使用

    matplotlib.pyplot.hist(  
    x, bins=10, range=None, normed=False,   
    weights=None, cumulative=False, bottom=None,   
    histtype=u'bar', align=u'mid', orientation=u'vertical',   
    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

    这个指定条状图的颜色

  • 相关阅读:
    csrf & xss
    android_sqlite
    android_error
    oracle笔记
    android_lesson_1
    mysql 设置编码
    前端进阶Event
    前端进阶Position
    chrome插件开发资料
    dom4j selectNodes
  • 原文地址:https://www.cnblogs.com/imageSet/p/7707565.html
Copyright © 2011-2022 走看看