官网

中文官网

Matplotlib is a comprehensive library for creating static, animated, and interactive visualizations in Python. Matplotlib makes easy things easy and hard things possible.

  • Create publication quality plots.
  • Make interactive figures that can zoom, pan, update.
  • Customize visual style and layout.
  • Export to many file formats.
  • Embed in JupyterLab and Graphical User Interfaces.
  • Use a rich array of third-party packages built on Matplotlib.

展示离散数据

散点图

柱状图

饼图

展示连续数据

直方图

箱须图

折线图

1
2
3
import matplotlib.pyplot as plt

plt.figure()#创建绘图对象

半对数图

展示数据的区域或空间分布

统计地图

曲面图

动态图

bar-chart-race

dashboard