title: Bar chart in pylab from a dictionary
body: <p>I have been reading up about this. And I have been unable to find how the data for a histogram is mapped. The way I understand it:</p>
  
  <blockquote>
    <p>A bar chart has a name and a value for each bin.</p>
  </blockquote>
  
  <p>This seems to be a pretty simple and intuitive way to look at it. I searched around and found this question: <a href="https://stackoverflow.com/questions/9182516/python-creating-histogram-out-of-dictionary">python: creating histogram out of dictionary</a></p>
  
  <p>Which seemed to be a long way from what I am asking.</p>
  
  <p>I have the following dictionary:</p>
  
  <pre><code>d = {'CLOVER':4,'SPADE':6,'DIAMOND':7,'HEART':2}
  </code></pre>
  
  <p>And I want to create a bar chart with this dictionary. The numbers will get bigger. But the number of bins will remain four.</p>
  
  <p>I am doing this as a project. We are doing this kinda thing with different implementations and then checking how random(pseudo-random technically) each implementation is. And then we need to submit a report. Which we will construct together.</p>
  
  <p><strong>please</strong> help me with the code. And also some examples.</p>
  
  <p><strong>specs</strong></p>
  
  <pre><code>Python 2.7
  Tkinter 8.5
  Pylab
  </code></pre>