title: Matplotlib not using latex font while text.usetex==True
body: <p>I want to create labels to my plots with the latex computer modern font. However, the only way to persuade matplotlib to use the latex font is by inserting something like:</p>
  
  <pre><code>title(r'$\mathrm{test}$')
  </code></pre>
  
  <p>This is of course ridiculous, I tell latex to start math mode, and then exit math mode temporary to write the actual string. How do I make sure that all labels are rendered in latex, instead of just the formulas? And how do I make sure that this will be the default behaviour?</p>
  
  <p>A minimal working example is as follows:</p>
  
  <pre><code>import matplotlib as mpl
  import matplotlib.pyplot as plt
  import numpy as np
  
  # use latex for font rendering
  mpl.rcParams['text.usetex'] = True
  
  
  x = np.linspace(-50,50,100)
  y = np.sin(x)**2/x
  plt.plot(x,y)
  
  plt.xlabel(r'$\mathrm{xlabel\;with\;\LaTeX\;font}$')
  plt.ylabel(r'Not a latex font')
  plt.show()
  </code></pre>
  
  <p>This gives the following result:</p>
  
  <p><img src="https://i.stack.imgur.com/20RMU.png" alt="Plot showing incorrect rendering of latex font types"></p>
  
  <p>Here the x axis is how I want the labels to appear. How do I make sure that all labels appear like this without having to go to math mode and back again?</p>