美文网首页
Matplotlib

Matplotlib

作者: 吃汤圆啦i | 来源:发表于2019-08-08 19:38 被阅读0次

1.Matplotlib简单实现

# 导入模块
import matplotlib.pyplot as plt
# 在jupyter中执行的时候显示图片
%matplotlib inline
# 传入x和y, 通过plot画图
plt.plot([1, 0, 9], [4, 5, 6])
# 在执行程序的时候展示图形
plt.show()

相关文章

网友评论

      本文标题:Matplotlib

      本文链接:https://www.haomeiwen.com/subject/gxyfjctx.html