- 博客(1)
- 收藏
- 关注
原创 绘制二维折线图
绘制二维折线图%matplotlib inline先运行 Jupyter Notebook 的魔术命令 %matplotlib inline。这条命令的作用是将 Matplotlib 绘制的图形嵌入在当前页面中。from matplotlib import pyplot as plt使用 Matplotlib 提供的面向对象 API,需要导入 pyplot 模块,并约定简称为 plt。plt.plot([1, 2, 3, 2, 1, 2, 3, 4, 5, 6, 5, 6, 3, 6, 1])p
2020-06-19 09:50:03
845
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人