title: How to put 'underbar' below a letter (underscored characters) in matplotlib?
body: <p>Unfortunately due to a problem with windows I cannot render any of my <code>matplotlib</code> text with <code>LaTeX</code>. So basically I need away already in <code>matplotlib's</code> text handling to place a line underneath a letter.</p>
  
  <p>So far the closest I have is <code>ax.text(x,y,z, r'$\mathbf{\underbar r}$')</code>, but this just produces <code>_r</code>. So if there is a way to get this bar under the 'r' that would be amazing. Thanks in advance!</p>
  
  <p>P.S. I have already tried <code>ax.text(x,y,z, r'$\underline{\mathbf{r}}$')</code> but this doesn't seem to work, :,(</p>
  
  <p><strong>Edit</strong></p>
  
  <p>Just realized that you can 'cheat' <code>matplotlib</code> :D by placing text in the exact same position with just an <code>\underbar</code>, which makes it appear under the letter. i.e. <code>ax.text(x,y,z, r'$\mathbf{r}$')</code> followed by <code>ax.text(x,y,z, r'$\mathbf{\underbar}$')</code></p>
  
  <p>But a quicker way would still be appreciated, thanks!</p>