title: Render output of Pandas 'to_latex' method in a matplotlib plot
body: <p><strong>Python Pandas DataFrame has a <code>to_latex</code> method:</strong></p>
  
  <pre><code>import pandas as pd
  from numpy import arange
  
  a = pd.DataFrame(arange(4))
  a.to_latex()
  </code></pre>
  
  <p><strong>Output:</strong></p>
  
  <blockquote>
    <p>'\begin{tabular}{|l|c|c|}\n\hline\n{} &amp;  0 \\\n\hline\n0 &amp;  0
    \\\n1 &amp;  1 \\\n2 &amp;  2 \\\n3 &amp;  3
    \\\n\hline\n\end{tabular}\n'</p>
  </blockquote>
  
  <p><strong>I would like to overlay this table on a matplotlib plot:</strong></p>
  
  <pre><code>import pylab as plt
  import matplotlib as mpl
  
  mpl.rc('text', usetex=True)
  plt.figure()
  ax=plt.gca()
  
  plt.text(9,3.4,a.to_latex(),size=12)
  plt.plot(y)
  plt.show()
  </code></pre>
  
  <p><strong>However, I get this error:</strong></p>
  
  <blockquote>
    <p>RuntimeError: LaTeX was not able to process the following string:
    '\begin{tabular}{|l|c|c|}'</p>
  </blockquote>
  
  <p><strong>My question is:</strong></p>
  
  <p>How do I render output of Pandas 'to_latex' method in a matplotlib plot?</p>