title: Fitting a curve over bar chart. [Python]
body: <p>I have a bar chart and I need to characterize the distribution of the data. Now, I'm positive that my data follow the geometric distribution but I can't fit a curve on the data neither can I plot the probability mass function.</p>
  
  <pre><code>plt.bar(range(len(freq)), [val[1] for val in freq], log=True, alpha=0.75)
  plt.xticks(range(len(freq)), [val[0] for val in freq])
  plt.xticks(rotation=70)
  plt.xlabel('Times a word appears in the collection',labelpad=1)
  plt.ylabel('Number of words appearing x times')
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/v9aag.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/v9aag.png" alt="enter image description here"></a></p>
  
  <p>How can I fit a curve on this data to prove my data follow the geometric distribution? </p>
  
  <p>I should note also, that my data is a list of tuples.</p>