> For the complete documentation index, see [llms.txt](https://codebysandwich.gitbook.io/matplotlib-python/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codebysandwich.gitbook.io/matplotlib-python/master.md). Agents can also search and read this documentation through its [MCP server](https://codebysandwich.gitbook.io/matplotlib-python/~gitbook/mcp).

# 前言

本书旨在讲解如何使用matplotlib的api实现基本绘图

![](https://gitee.com/codebysandwich/source/raw/master/picgo/matplotlib_logo.png)

`matplotlib`是`python`数据科学中常用的绘图基础包, 拥有丰富的绘图接口, 定制化程度较高。由于matplotlib是基于`面向对象`设计的，学习之前有面向对象的基础学习起来会相对容易一些，面向对象的程序设计对于绘图时的封装具有独到的优势。但是这点并不是绝对的，使用过程式的编程并采用`函数式编程`对代码进行封装也是不错的选择，这点在官方示例代码中也大量的体现。

## 作者摘要

写这本网络书籍主要目的是为了解决日常工作中的绘图需求，同时对matplotlib的学习做一个汇总。数据分析往往和数据可视化是结合在一起的，数据可视化的一大意义就是在于发现意料之外的数据关系。也希望本次的编撰能够给自己带来意外的收获。

[![git](https://img.shields.io/static/v1?label=Github\&message=codebysandwich\&style=flat\&logo=github\&color=green)](https://github.com/codebysandwich)
