I\'m drawing several bar and pie charts using matplotlib.pyplot.bar() and matplotlib.pyplot.pie(). In both functions, I can change the colors of the bars and wedges.
This may help you:
http://matplotlib.org/examples/pylab_examples/demo_ribbon_box.html
which uses matplotlib.image.BboxImage
I believe this can resize a given image according to input data.