安装matplotlib

win下下载了python的安装包,安装时候,勾选添加安装路径到系统路径
执行下面命令安装matplotlib

python -mpip install -U matplotlib -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

在执行一个最简单的画图,图形出来了

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()

这里写图片描述

猜你喜欢

转载自blog.csdn.net/juewuer/article/details/79478834