I try to make a table with a title in Python using LaTeX.
The following code creates a figure with a title, as I want the title to be.
import matplotlib.pyplot as plt
s1="a_b_c"
s2=r'''\begin{tabular}{ c | c | c } & 1 & 2 \\\hline 1 & 1 & 2 \\\hline 2 & 2 & 4 \end{tabular}'''
plt.figure(figsize=(4,5))
ax=plt.subplot2grid((1,1),(0,0))
ax.text(0.5,0.8,s1,ha="center",va="center",transform=ax.transAxes)
plt.show()

But now I add two lines to the upper code which make the title wrong.
import matplotlib.pyplot as plt
s1="a_b_c"
s2=r'''\begin{tabular}{ c | c | c } & 1 & 2 \\\hline 1 & 1 & 2 \\\hline 2 & 2 & 4 \end{tabular}'''
plt.figure(figsize=(4,5))
ax=plt.subplot2grid((1,1),(0,0))
ax.text(0.5,0.8,s1,ha="center",va="center",transform=ax.transAxes)
###
plt.rc('text', usetex=True)
ax.text(0.3,0.2,s2,ha="left",va="bottom",transform=ax.transAxes,size=20)
###
plt.show()

What can I do to use LaTeX fonts and usual python fonts at the same time? Of course, without modifying the strings s1 and s2.