title: How can I write the latex special character $\bar{T}$ in matplotlib axes?
body: <p>I would like to write the latex math mode symbol $\bar{T}$ in the axes label of a plot made with matplotlib. The <a href="http://matplotlib.org/users/usetex.html" rel="nofollow">documentation</a> states that math mode is not supported so I tried </p>
  
  <pre><code>plt.xlabel(r'$\displaystyle \={T}$',fontsize=12)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>plt.xlabel(r'$\={T}$',fontsize=12)
  </code></pre>
  
  <p>which gives the errors </p>
  
  <pre><code>matplotlib.pyparsing.ParseFatalException: Expected end of math '$'
  $\displaystyle \={T}$ (at char 0), (line:1, col:1)
  </code></pre>
  
  <p>and </p>
  
  <pre><code>    raise ParseFatalException(msg + "\n" + s)
  matplotlib.pyparsing.ParseFatalException: Expected end of math '$'
  $\={T}$ (at char 0), (line:1, col:1)
  &gt;&gt;&gt; 
  </code></pre>
  
  <p>Is there a way to write this symbol in the axes labels using matplotlib? I have been able to write other latex axes labels but I have never used any of these <a href="http://en.wikibooks.org/wiki/LaTeX/Special_Characters" rel="nofollow">special characters.</a></p>