title: How to add bold annotated text to a plot
body: <p>I want to make an annotated text in a plot using matplotlib. I have tried the following:</p>
  <pre><code> a=10.0
   font=matplotlib.font_manager.FontProperties()
   font.set_weight('bold')
   text(0,1,&quot;:.2f&quot;.format(a), fontproperties=font)
  </code></pre>
  <p>I have also tried:</p>
  <pre><code> a=10.0
   text(0,1,&quot;:.2f&quot;.format(a), weight='bold')
  </code></pre>
  <p>None of them work, and no error is thrown.</p>
  <hr />
  <p>minimal example:</p>
  <pre><code>import matplotlib.pyplot as plt
  
  def main():
     plt.figure()
     plt.plot([0,1],[0,1])
     plt.text(0.5,0.5,&quot;string&quot;,weight=&quot;bold&quot;)
  </code></pre>
  <p>matplotlib version: 1.2.1</p>
  <p>python 3.3.2</p>