title: Adding input variables to plot title/legend in Python
body: <p>I would like to display the current value of a parameter used to plot a certain function in the plot title/legend/annotated text. As a simple example, let's take a straight line:</p>
  
  <pre><code>import numpy
  import matplotlib.pyplot as plt
  
  def line(m,c):
     x = numpy.linspace(0,1)
     y = m*x+c
     plt.plot(x,y)
     plt.text(0.1, 2.8, "The gradient is" *the current m-value should go here*)
     plt.show()
  
  print line(1.0, 2.0)
  </code></pre>
  
  <p>In this case, I would like my text to say "The gradient is 1.0", but I'm not sure what the syntax is. Moreover, how would I include the second (and more) parameter(s) below, so that it reads:</p>
  
  <p>"The gradient is 1.0</p>
  
  <p>The intercept is 2.0."</p>