title: How do I plot a binomial probability distribution?
body: <p>I have calculated a set of binomial distributions giving me the probabilities of finding <strong>n</strong> number of objects given a sample of <strong>N</strong> objects.</p>
  
  <p>I calculated this using the Percent Point Function (PPF) (a.k.a. the inverse cumulative function) using the scipy.stats.distributions package.</p>
  
  <p>Now that I want to plot a probability distribution a question emerges: <em>Which package and function in python should I use for this?</em> I've found a few useful resources like: <a href="http://goo.gl/Q2UjxX" rel="nofollow noreferrer">http://goo.gl/Q2UjxX</a> but I am still no closer (most likely I am missing something).</p>
  
  <p>Say n = 2 and N = 10. <em>How would I go about creating the plot below?</em>:</p>
  
  <p>The x-axis shows the range of values from 0 - n/N (where N > n always).<br>
  The y-axis shows the probability of n/N.</p>
  
  <p><img src="https://i.stack.imgur.com/EiT2k.png" alt="Probability distribution constructed for a sample size N = 10 and n = 2."></p>
  
  <p>Thank you all for your time.</p>