python生成图片

# -*- 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()

 

posted @ 2017-03-27 11:16  jackchen007  阅读(9854)  评论(0)    收藏  举报