Python——Matplotlib

数据可视化,我们为什么要放弃Matlab转投Python阵营

1、安装Matplotlib

如何安装matplotlib模块

python -m pip install -U pip setuptools #setuptools升级28.8.0版本到38.2.5版本
python -m pip install matplotlib #安装matplotlib2.1.1、pyparsing、six、cyler、pytz、numpy、python-dateutil
python -m pip list查看本机的安装的所有模块,确保matplotlib已经安装成功
进入到python idle中,运行import matplotlib

2、Jupyter Notebook入门

参考Matplotlib 教程,因为ipython已经升级为jupyter,安装notebook的步骤:

python -m pip install –upgrade pip
python -m pip install jupyter #会自动下载安装模块,模块数量较多

开启notebook

jupyter notebook #是一个网页端服务,会自动打开本地浏览器,局域网内可授权访问

Jupyter Notebook 快速入门
jupyter Notebook的好处是支持markdown,直接在网页发布共享,局域网通过ssh访问的步骤:

待补充

jupyter Notebook支持其他语言的步骤:

待补充

3、使用matplotlib绘图总结

matplotlib绘图总结
Matplotlib 教程

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s