【发布时间】:2014-10-12 19:37:31
【问题描述】:
我正在尝试使用 Matplotlib-Plot 的注释绘制矩阵。这甚至可能吗?
尝试了最基本的例子,这一切都打破了情节:
ax.annotate(r"$ \begin{matrix} a & b & c \\
d & e & f \\
g & h & i \end{matrix} $", (0.25, 0.25),
textcoords='axes fraction', size=20)
编辑:
问题的一部分是我缺少包含“type1cm”的“texlive-latex-extra”,这是正确渲染它所必需的。另见:Python: Unable to Render Tex in Matplotlib
【问题讨论】:
标签: matplotlib