title: Matplotlib - How to add multiple lines text box when using $ sign in the line I want to display?
body: <p>I need to plot r squared and power law equation in two separate lines in a text box in a figure, but I can't use the <code>'$a=3$\n$b=2$</code> as I already have <code>$</code> sign in my code. So whenever I try to add the <code>'&amp; \ &amp;'</code> it does not work. </p>
  
  <pre><code>'y='+str(round(m,3))+'x$^{'+str(round(j,3))+'}$'
  
  r$^{2}$=0.95
  </code></pre>
  
  <p>How can I display these in two lines in a box on a figure?</p>
  
  <p>Thanks</p>