title: Set matplotlib plot axis to be the dataframe column name
body: <p>I have a dataframe like so:</p>
  
  <pre><code>data = DataFrame({'Sbet': [1,2,3,4,5], 'Length' : [2,4,6,8,10])
  </code></pre>
  
  <p>Then I have a function that plots and fits this data</p>
  
  <pre><code>def lingregress(x,y):
      slope, intercept, r_value, p_value, std_err = stats.linregress(x,y)
      r_sq = r_value ** 2
  
      plt.scatter(x,y)
      plt.plot(x,intercept + slope * x,c='r')
  
      print 'The slope is %.2f with R squared of %.2f' % (slope, r_sq)
  </code></pre>
  
  <p>Then I would call the function on the dataframe:</p>
  
  <pre><code> linregress(data['Sbet'],data['Length'])
  </code></pre>
  
  <p>My question is how do I get the x axis label and y axis label to be <code>Sbet</code> and <code>Length</code> within the function as well as the plot title to be <code>Sbet vs Length</code>  I've tried a few things but I tend to get the whole column back when I use <code>plt.xlabel(data['Sbet'])</code> and <code>plt.title</code>.</p>