title: Matplotlib trendline code.. will run but won't plot the p(x) line.... I don't know whats wrong.
body: <p>Please help with this... I can't get the line to plot. it will plot the x,y scatter, but no trendline will appear. </p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as fs
  name = ["SlowFast","Bedrock","MeanSlow","hAgDenkm","hSinDenkm","hAgSl","hAgFa","hSinSl","hSinF","LogSlowFast","LogBedrock","LogMeanSlow","LoghAgDenkm",#
               "LoghSinDenkm","LoghAgSl","LoghAgFa","LoghSinSl","LoghSinFa"]
  data = np.genfromtxt('C:\Users\Ben\Documents\R\LWM_Study\LWM52714BigRun.csv',dtype = 'float' , delimiter = ',' , skip_header = 0, skip_footer= 20 , names = name) ### data array###
  
  x=data["LogSlowFast"]
  y=data["LoghSinDenkm"]
  z = np.polyfit(x,y,1)
  p = np.poly1d(z)
  fs.plot(x,y,'ro',x,p(x),'r--')
  fs.ylabel("a")
  fs.xlabel("LogSlowFast")
  fs.show()
  
  print x,y,z,p
  </code></pre>