光催化剂【Python】直⽅图绘制代码#绘制直⽅图
def drawHist(heights):
饱嗝儿
#创建直⽅图ids
竖轴#第⼀个参数为待绘制的定量数据,不同于定性数据,这⾥并没有事先进⾏频数统计
冬奥会徽
#第⼆个参数为划分的区间个数
bins = np.arange(0,1.01,0.01)
n, bins, patches = pyplot.hist(heights, bins)
pyplot.xlabel('x轴')
pyplot.ylabel('y轴')
pyplot.title('标题')
pyplot.show()护肤品代购
小中大return n, bins, patches
a = np.array([1,2,3])
公职律师n, bins, patches = drawHist(a)