title: "%" sign in a matplotlib Python
body: <p>Is there any way that I can print a % sign in a plot on python using matplotlib in a Text object or inside a Legend?</p>
  
  <p>This basic example, without a raw percent sign, behaves as expected:</p>
  
  <pre><code>plt.figure()
  TotEne,= plt.plot_date(time, ETTG['output'], 'b-', label='Total Energy')
  UsEne,= plt.plot_date(time, EUUG['output'], 'r-',label='Used Energy')
  plt.ylabel('kWh')
  plt.text('2015-12-15',25000,'Energy Losses=%.2f'%pEW, clip_on=True)
  plt.legend(handles=[TotEne,UsEne])   
  plt.show()
  </code></pre>
  
  <p>In that case the text says "Energy Losses = ". But I wonder if there is a possible way to display "Energy Losses=%" or, "%Energy Losses=". </p>
  
  <p>When I try to do that, it raises a TypeError. I just want to literally display the "%" character. So doing this:</p>
  
  <pre><code>plt.figure()
  TotEne,= plt.plot_date(time, ETTG['output'], 'b-', label='Total Energy')
  UsEne,= plt.plot_date(time, EUUG['output'], 'r-',label='Used Energy')
  plt.ylabel('kWh')
  plt.text('2015-12-15',25000,'%Energy Losses=%.2f'%pEW, clip_on=True)
  plt.legend(handles=[TotEne,UsEne])  
  plt.show()
  </code></pre>
  
  <p>Raises this error:</p>
  
  <pre><code>---------------------------------------------------------------------------
  TypeError                                 Traceback (most recent call last)
  &lt;ipython-input-559-9d13c78a6754&gt; in &lt;module&gt;()
       20 plt.ylabel('kWh')
       21 
  ---&gt; 22 plt.text('2015-12-15',25000,'%Energy Losses=%.2f'%pEW, clip_on=True)
       23 
       24 plt.legend(handles=[TotEne,UsEne])
  
  TypeError: not enough arguments for format string
  </code></pre>
  
  <p>How do I include a literal percent sign ("%") in a matplotlib figure with an interpolated string using the <code>%</code> operator?</p>