title: Make histogram in python with list
body: <p>I need some help making a histogram in python</p>
  
  <p>Got some code like this:</p>
  
  <pre><code>import csv
  import matplotlib.pyplot as plt
  
  path = []
  
  with open('paths_finished.tsv','r') as tsv:
      paths = [line.strip().split('\n') for line in tsv]
      newPath = paths[16:]
      counter = 0
  
  
  for k in range(0,len(newPath)):
      path = newPath[counter][0].count(';')
      counter +=1
  
      print path
  </code></pre>
  
  <p>if i print path, i get a list with numbers like (9, 5, 1, 3, 12 , 7, 5, 9) and so on.
  Now i have to make a histogram of path. Any can help with that?</p>
  
  <p>UPDATE:</p>
  
  <p>My tsv file contains this:</p>
  
  <pre><code>['36dabfa133b20e3c', '1249525912', '112', '14th_century;China;Gunpowder;Fire', '2']
  ['20418ff4797f96be', '1229188046', '139', '14th_century;Time;Isaac_Newton;Light;Color;Rainbow', '1']
  ['08888b1b428dd90e', '1232241510', '74', '14th_century;Time;Light;Rainbow', '3']
  ['08888b1b428dd90e', '1232241601', '167', '14th_century;15th_century;Plato;Nature;Ultraviolet;Color;Rainbow', 'NULL']
  ['4cb0068c36658716', '1248654953', '253',  '14th_century;Time;Science;Nature;Weather;Sunlight;     &lt;;Sun;Earth%27s_atmosphere;Ultraviolet;Color;Light;Rainbow', '3']
  ['1082b6b8501a04b1', '1248791776', '218', '14th_century;Christianity;Bible;God;Nature;Earth%27s_atmosphere;Ultraviolet;Optical_fiber;L    ight;Rainbow', '3']
  ['390ae528683f78ab', '1250727252', '66', '14th_century;Time;Astronomy;Light;Rainbow',   'NULL']
  ['0d57c8c57d75e2f5', '1283956474', '391', 
  </code></pre>
  
  <p>My path prints this:</p>
  
  <pre><code>12
  6
  4
  4
  6
  6
  4
  4
  8
  4
  4
  </code></pre>
  
  <p>and alot more numbers.</p>