python直方图

import matplotlib.pyplot as plt

import numpy as np

pop = np.random.randint(0,100,100)

pop

n,bins,patches = plt.hist(pop,bins=20)

plt.show()

posted @ 2020-06-13 16:27  逐梦无惧_数据分析  阅读(301)  评论(0编辑  收藏  举报