文本#

Matplotlib 支持广泛的文本功能,包括对数学表达式的支持、TrueType 支持栅格和矢量输出、带有任意旋转的换行文本,以及 Unicode 支持。这些教程涵盖了在 Matplotlib 中使用文本的基础知识。

更多信息请参见 示例页面

Matplotlib 中的文本

Text in Matplotlib

文本属性和布局

Text properties and layout

注解

Annotations

Matplotlib 中的字体

Fonts in Matplotlib

书写数学表达式

Writing mathematical expressions

通过 pgf 后端使用 XeLaTeX/LuaLaTeX 进行文本渲染

Text rendering with XeLaTeX/LuaLaTeX via the pgf backend

使用 LaTeX 进行文本渲染

Text rendering with LaTeX