Python画柱状图

统计数组频数的方法

import numpy as np
def GetBarFrequency(arr, barTotal, minNum = None, maxNum = None):
    #没有自定义最大最小值则用数组计算最大最小值
    if not maxNum:
        maxNum = max(arr ...
more ...