python构建(Bar graph)柱状图
**
python构建(Bar graph)柱状图
**
用到的库 cmd (pip install 库名)
numpy
matplotlib.pyplot
其中需要了解Matplotlib基础知识
Matplotlib基础知识
代码我认为有以下几步:
1.列表存储x,y坐标:
X = [0, 1, 2, 3, 4, 5, 6, 7]
Y = [300, 61, 345, 751, 456, 134, 111, 123]
2.figure 容器:
plt.figure()
3.plt():
plt
原创
2020-06-28 20:50:23 ·
1087 阅读 ·
0 评论