-
Notifications
You must be signed in to change notification settings - Fork 209
/
README.md
64 lines (52 loc) · 1.92 KB
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
home: true
meta:
- name: keywords
content: matplotlib中文文档,matplotlib中文api,matplotlib中文手册,matplotlib教程,matplotlib下载安装,matplotlib
- name: description
content: Matplotlib中文网、Matplotlib官方中文文档。
heroImage: /logo.svg
actions:
- text: 快速了解 →
link: /intro/
type: primary
- text: 开始深度学习
link: https://analytics.numpy.org.cn/course.html
type: primary
footer: 署名-非商业性使用-相同方式共享 3.0 中国大陆 (CC BY-NC-SA 3.0 CN) | Copyright © 2019-present Zhi Bing
---
<div class="features">
<div class="feature">
<h2>Matplotlib 是什么?</h2>
<p>Matplotlib 是一个 Python 的 2D绘图库,它以各种硬拷贝格式和跨平台的交互式环境生成出版质量级别的图形。</p>
</div>
<div class="feature">
<h2>为什么选择 Matplotlib?</h2>
<p>如果某天你发现自己要学习 Matplotlib, 很可能是因为: 1、Matplotlib 是一个非常强大的 Python 画图工具;2、手中有很多数据, 可是不知道该怎么呈现这些数据。
</p>
</div>
<div class="feature">
<h2>Matplotlib 能帮你?</h2>
<p>绘制线图、散点图、等高线图、条形图、柱状图、3D 图形、、甚至是图形动画等等。</p>
</div>
</div>
### 就像 1、2、3 一样简单
```bash:no-line-numbers
# 1、安装包
$ pip install matplotlib
# 2、进入python的交互式界面
$ python -i
# 3、使用 matplotlib 的 scatter 方法绘制散点图
>>> import matplotlib.pyplot as plt
>>> x = [1, 2, 3, 4, 5]
>>> y = [2.3, 3.4, 1.2, 6.6, 7.0]
>>> plt.scatter(x, y, color='r', marker='+')
# 4、输出结果
# 你的电脑随后会弹出一个最终图表效果的窗口。
```
::: warning 提醒
本网站推荐使用[Python3.x](https://www.python.org/downloads/)及以上版本。
:::
<ahome-article></ahome-article>
<ahome-nav></ahome-nav>
<ahome-footer></ahome-footer>