# -*- coding:utf-8 -*- from pylab import * figure(1,figsize=(6,6)) ax = axes([0.1,0.1,0.8,0.8]) fracs = [45,30,25] explode = {0,0,0.08} pie(fracs,explode=explode,labels=labels,autopct='%1.1f%%',shadow=True,startangle=90,colors={"g","r","y"}) title('raining hogs and dogs') show()