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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM