直方图(histogram)展示离散型数据分布情况,直观理解为将数据按照一定规律分区间,统计每个区间中落入的数据频数,绘制区间与频数的柱状图即为直方图。
目录
欢迎随缘关注@pythonic生物人
2、matplotlib.pyplot.hist直方图参数详解
2.1、bins='auto',# 可选'auto', 'fd', 'doane', 'scott', 'stone', 'rice', 'sturges', or 'sqrt'.各选项详细解释
auto’ (maximum of the ‘sturges’ and ‘fd’ estimators)