title: How to create multiple histograms on separate graphs with matplotlib?
body: <p>I have 5 data sets from which I want to create 5 separate histograms.  At the moment they are all going on one graph. How can I change this so that it produces two separate graphs?</p>
  
  <p>For simplicity, in my example below I am showing just two histograms. I am looking at the distribution of angle <code>a</code> at 3 different times and the same for angle <code>b</code>.</p>
  
  <pre><code>n, bins, patches = plt.hist(a)
  plt.xlabel('Angle a (degrees)') 
  plt.ylabel('Frequency')
  n, bins, patches = plt.hist(b)
  label='2pm,3pm,4pm'
  loc = 'center'
  plt.legend(label, loc)
  
  plt.xlabel('Angle b(degrees)')        
  plt.title('Histogram of b')
  plt.ylabel('Frequency')
  label='2pm,3pm,4pm'
  loc = 'center'
  plt.legend(label, loc)
  
  plt.show()
  </code></pre>