title: Creating a line plot in python using data from a-for loop
body: <p>I have some previous code which will print out</p>
  
  <p>'The number for january is x' - etc, throughout one year.</p>
  
  <p>I'm trying to plot the x vs the months using this:</p>
  
  <pre><code>import matplotlib.pyplot as plt
  for m, n in result.items():
      print 'The number for', m, "is", n
      plt.plot([n])
      plt.ylabel('Number')
      plt.xlabel('Time (Months)')
      plt.title('Number per month')
      plt.show()
  </code></pre>
  
  <p>Where m is the month (also the file name it reads from and n is the x value (number). </p>
  
  <p>However when I run this I just get a blank graph - I think I may be missing somethhing major out? </p>
  
  <p>Result contains:</p>
  
  <pre><code>{'apr': 13, 'jun': 13, 'jul': 13, 'aug': 13, 'sep': 13, 'oct': 13} x 6 times 
  </code></pre>
  
  <p>For practical purposes I made each file have a number of 13 as the real files are enormous </p>