title: Python matplotlib frequency pixel map
body: <p>I just wanted to ask how could I best create a frequency pixel map using matplotlib. By this term I mean something such as:</p>
  
  <p><a href="http://img513.imageshack.us/img513/8677/g8df.png" rel="nofollow noreferrer">http://img513.imageshack.us/img513/8677/g8df.png</a></p>
  
  <p>Where the colour of the square represents the frequency for the corresponding hour and interval.</p>
  
  <p>I was thinking to plot a series of 50 patches and colour them according to the data and using a colour scale? Or is there a better way to do this?</p>
  
  <p>Thanks</p>