I'm trying to plot a matrix using the annotations of a Matplotlib-Plot. Is this even possible?
Tried around with the most basic example, which all break the 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)
Edit:
Part of the problem was that I was missing "texlive-latex-extra" which contains "type1cm", which is needed to render this correctly. See also: Python: Unable to Render Tex in Matplotlib