title: how to use string formatting syntax in a plot label
body: <p>Using Python and Pyplot, one of my plot labels was the following, which gave what I wanted.</p>
  
  <pre><code>plt.ylabel('$\mathrm{\dot{\nu}}$ ($\mathrm{10^{-16} s^{-2}}$)', fontsize=16)
  </code></pre>
  
  <p>Then instead of the label saying 10^-16, I wanted the label to be 10^-"power" where power is a variable that I have in my code.</p>
  
  <p>I adjusted the code to:</p>
  
  <pre><code>plt.ylabel('$\mathrm{\dot{\nu}}$ ($\mathrm{10^{-{0}} s^{-2}}$)'.format(power), fontsize=16
  </code></pre>
  
  <p>But I get the following error:</p>
  
  <pre><code>KeyError: '\\dot{\\nu}'
  </code></pre>
  
  <p>The error seems like it doesn't know when I want to substitute "power" because of all the curly brackets, but I'm not sure how to fix it.</p>