# Matplotlib使用

# 官网

https://matplotlib.org/stable/ (opens new window)

# 全案例

https://matplotlib.org/stable/gallery/index.html# (opens new window)

# 安装

pip install matplotlib

# 具体使用请参考官网,很详细~

# 常见问题

# 中文乱码

在开头加上

plt.rcParams['font.sans-serif'] = ['SimHei', 'Microsoft YaHei', 'DejaVu Sans']
plt.rcParams['axes.unicode_minus'] = False
Last Updated: 12/28/2025, 2:27:53 PM