文本#

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

要获取更多信息,请参阅 examples page .

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