python:实现绘制直方图
import matplotlib.pyplot as plt
# 数据
data = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
# 绘制直方图
plt.hist(data)
# 显示图形
plt.show()
该博文为原创文章,未经博主同意不得转载。
本文章博客地址:https://cplusplus.blog.youkuaiyun.com/article/details/130059611
import matplotlib.pyplot as plt
# 数据
data = [10, 20, 30, 40, 50, 60, 70, 80, 90, 100]
# 绘制直方图
plt.hist(data)
# 显示图形
plt.show()
该博文为原创文章,未经博主同意不得转载。
本文章博客地址:https://cplusplus.blog.youkuaiyun.com/article/details/130059611