Matplotlib——第一章轻松画个图

首先安装matplotlib,使用pip install matplotlib。安装完成后在python的命令行敲入import matplotlib,如果没问题,说明安装成功可以开始画图了。 看好了,见证奇迹的时刻 from matplotlib import pyplot as plt plt.plot([1,2,3,4,5],[4,3,4,3,4]) #在画布上画图 plt.show()
相关文章
相关标签/搜索