python安装第三方库matplotlib_python matplotlib,python上面使用第三方库

python matplotlib

python上面使用第三方库

Matplotlib从这里下载

自我介绍:

我可以用python创建

静态图

动画

交互的可视化图

Matplotlib can be used in Python scripts, the Python and IPython shell, web application servers, and various graphical user interface toolkits.

我可以出现于

.py文件

python shell

IPython shell

web app servers

GUI 工具

安装:D:\Programs\Python\Python38>python -m pip install matplotlib

Collecting matplotlib

Downloading matplotlib-3.2.1-cp38-cp38-win_amd64.whl (9.2 MB)

|████████████████████████████████| 9.2 MB 3.3 MB/s

Collecting kiwisolver>=1.0.1

Downloading kiwisolver-1.2.0-cp38-none-win_amd64.whl (58 kB)

|████████████████████████████████| 58 kB 1.6 MB/s

Collecting python-dateutil>=2.1

Downloading python_dateutil-2.8.1-py2.py3-none-any.whl (227 kB)

|████████████████████████████████| 227 kB 3.3 MB/s

Requirement already satisfied: numpy>=1.11 in d:\programs\python\python38\lib\site-packages (from matplotlib) (1.18.2)

Collecting cycler>=0.10

Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)

Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1

Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)

|████████████████████████████████| 67 kB 1.8 MB/s

Collecting six>=1.5

Downloading six-1.14.0-py2.py3-none-any.whl (10 kB)

Installing collected packages: kiwisolver, six, python-dateutil, cycler, pyparsing, matplotlib

Successfully installed cycler-0.10.0 kiwisolver-1.2.0 matplotlib-3.2.1pyparsing-2.4.7 python-dateutil-2.8.1 six-1.14.0

注意:在安装第三方库的时候,会顺带安装其他的第三方库。

安装好了,如何使用

from scipy import misc

import matplotlib.pyplot as plt

face=misc.face()

plt.imshow(face)

plt.show()

最好的入门教程

参考

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值