title: Python matplotlib - how to create a pie chart with colour representing the frequency?
body: <p>I was wondering how can I create a pie chart which has equal sized segments where the colour per segment represents the frequency for that segment?</p>
  
  <p>This is also known as a clock glyph. I aim to split the pie chart into 24 segments and plot some frequency data for hours where the frequency will determine the colour of the hour segment based upon a colourmap.</p>
  
  <p>The data would be something like this (for a 5 hour period):</p>
  
  <pre><code>data = [3,34,76,11,90]
  </code></pre>
  
  <p>And my colourmap (mycm) is:</p>
  
  <pre><code>mycm = LinearSegmentedColormap.from_list('mycm',['k','r'])]
  </code></pre>
  
  <p>To create the equal segments I guess I use something like:</p>
  
  <pre><code>plt.pie([1,1,1,1,1], labels=None, shadow=False, radius=0.5)
  </code></pre>
  
  <p>But how can I then colour these using the colourmap I have defined based upon the frequency values in data?</p>
  
  <p>Thanks in advance!</p>