title: How to use different font types for math text and regular text using matplotlib?
body: <p>I am using the <em>ieeconf</em> latex class to write a document. To generate the plots for the document, I use <em>matplotlib 1.2</em>. For some reason, the ieeconf class uses <em>Times</em> font for regular text and <em>Computer modern roman</em> for math text. If in matplotlib I use the following <em>matplotlibrc</em> file</p>
  
  <pre><code>font.family         : serif
  font.serif          : Times
  text.usetex         : True
  </code></pre>
  
  <p>the regular text (non-math) in the plots looks exactly like the regular text in the rest of the document. However, the math text in the plots looks different to the math text in the document. If instead I use <code>font.serif : Computer Modern Roman</code>, then the roles are reversed, and the math texts look identical, but the regular ones look different.</p>
  
  <p>How can I make matplotlib use one font type for the regular text, and another font type for the math text?</p>