title: Using matplotlib in pygame
body: <p>I have a big question here - one that I imagine the majority of people will not like and I will probably be flamed for being a noob but here goes anyway.</p>
  
  <p>I am trying to use matplotlib to implement a barchart into my pygame program. I managed to do it pretty simply but not using pygame.</p>
  
  <p>I have managed to make a bar chart but I am not able to put it into pygame:</p>
  
  <pre><code>names = ['a', 'b', 'c']
  values = [1, 10, 100]
  plt.figure(1, figsize=(9, 3))
  plt.bar(names, values)
  plt.show()
  </code></pre>
  
  <p>I want to implement this to my game in pygame but I honestly have no idea where to start. It is for a project due next week. Thanks.</p>