title: Changing the font of ax.text in matplotlib
body: <p>I am making a python plot using matplotlib.</p>
  
  <p>At the start of the code, I use:</p>
  
  <pre><code>plt.rcParams['font.family'] = 'serif'
  plt.rcParams['font.serif'] = ['Times New Roman'] + plt.rcParams['font.serif']
  </code></pre>
  
  <p>in order to change the font of the text in my plots.</p>
  
  <p>I also use:</p>
  
  <pre><code>ax.text(0.5,0.5, r'$test_{1}$', horizontalalignment='center', verticalalignment='center', size=18)
  </code></pre>
  
  <p>But this text is not Times New Roman. </p>
  
  <p>How do I make the <code>ax.text</code> Times New Roman?</p>
  
  <p>Thanks. </p>