title: Plot a histogram with the x axis values based on the height of the column
body: <p>So say I have the following:</p>
  
  <pre><code>[1,5,1,1,6,3,3,4,5,5,5,2,5]
  
  Counts: {1:3, 2:1, 3:2, 4:1, 5:5, 6:1}
  </code></pre>
  
  <p>Now, I wanted to print a plot like a histogram that is sorted on the x axis, as in:</p>
  
  <p>A traditional histogram is:</p>
  
  <pre><code>        X  
          X
  X       X  
  X   X   X
  X X X X X X
  1 2 3 4 5 6
  </code></pre>
  
  <p>What I would want is:</p>
  
  <pre><code>        X  
          X
        X X  
      X X X
  X X X X X 
  2 4 3 1 5 
  </code></pre>
  
  <p>My current plotting code is:</p>
  
  <pre><code>plt.clf()
  plt.cla()
  plt.xlim(0,1)
  plt.axvline(x=.85, color='r',linewidth=0.1)
  plt.hist(correlation,2000,(0.0,1.0))
  plt.xlabel(index[thecolumn]+' histogram')
  plt.ylabel('X Data')
  
  savefig(histogramsave,format='pdf')
  </code></pre>
  
  <p>Please help me out about how I can do this... I understand I posted a similar question before, but I believe I was unclear about it....</p>