![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据分析
北山璎珞
私はこのjianghuが好き
展开
-
python数据分析 - 各种图
一 折线图1.1import matplotlib.pyplot as plt#折线图:通过传入的数据,在二维坐标系下形成点,再将这些点连接成线x = [1,5,4] #[x轴开始, x轴结束, x]y = [5,8,6] #[y轴开始, y轴结束, y]plt.plot(x,y) #三个节点[1, 5] [5, 8] [4, 6]plt.show()1.2import m...原创 2020-03-08 21:33:49 · 2488 阅读 · 0 评论 -
Python3中matplotlib安装和使用
更新pip的版本,适合当前Python版本python -m pip install --upgrade pip安装matplotlib:python -m pip install matplotlib如果pip的版本不对,就会出现如下错误:C:\Users\25308>python -m pip install matplotlibCollecting matplotlib...原创 2019-12-28 21:40:39 · 4924 阅读 · 1 评论