title: Plotting a Lognormal Distribution
body: <p>I am trying to plot a lognormal distribution so I can compare it with a histogram of my sample data using the code below but my plot does not look right. Is there something with my code that I am not doing correctly? 
  The C array has a length of 17576 </p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  
  data=np.loadtxt(F)
  C=data[:,3]
  
  x = np.ma.log(C)
  avg = np.mean(x)
  std = np.std(x)
  dist=lognorm(std,loc=avg)
  plt.plot(C,dist.pdf(C),'r')
  plt.show()
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/vYHsP.png" alt="My Plot "></p>