Matplotlib之基本做图

Refer to 莫烦Python之Matplotlib

快速查看某种图的实现,https://matplotlib.org/gallery.html#widgets

1. Installation 安装

numpy is required before installing the ‘matplotlib’

On unix-like system, directly install these package(module) through pip command

# python2
$ pip install numpy, matplotlib
# python3
$ pip3 install numpy, matplotlib

Personally, managing the python modules through Conda is highly recommended.

$ conda info -e
$ anaconda search conda numpy

2. Basic Operations 基本画图

3. Figure 画多个图, 不同线性

4. Axis Setting 坐标轴

5. Legend 图例

6. Annotation 注释

7. Tick 设置

8. Subplot 多图合一

9. Grid 分格显示

10. Second Axis 次坐标轴

Table of Contents