Python full stack (12) data analysis of 2.matplotlib subgraph drawing and components

Preface

This article mainly introduces the basics of matplotlib, including the concept and installation of matplotlib, the basic drawing of graphs and subgraphs, the drawing of line graphs, the use of basic parameters, and the display settings of Chinese fonts, which is the basic use of Python using matplotlib library to draw pictures, which is a higher-level Lay the foundation for usage.

1. Introduction and installation of Matplotlib

Matplotlib is a basic plotting library for Python . It can be used with NumPy instead of Matlab.

Matplotlib can visualize the data, make the data more intuitive, and at the same time make the data more convincing.

It needs to be installed before use, just execute the command directly pip install matplotlib -i https://pypi.douban.com/simple.

For more introduction and refer to matplotlib official website https://matplotlib.org/users/installing.html .

2. Drawing of graphs and subgraphs

Guess you like

Origin blog.csdn.net/CUFEECR/article/details/109773664