|
From: <lao...@gm...> - 2006-03-10 16:03:19
|
Just testing ---- I seem to be unable to post to this list. Thanks!
On 3/10/06, Ryan Suarez <ry...@ze...> wrote:
> Greetings,
>
> Sorry, I am new to matplotlib(0.86.1). I modifed the sample pie chart
> below to report disk quota usage. But how do I specify colors? (blue
> for free, and red for used)
>
> -----------
> from pylab import *
> figure(1, figsize=3D(4,4))
> ax =3D axes([0.1, 0.1,0.8,0.8])
> labels =3D 'Free', 'Used'
> fracs =3D [15,85]
> figure(1)
> pie(fracs, labels=3Dlabels)
> figure(2, figsize=3D(8,8))
> explode=3D(0.05,0)
> pie(fracs, explode=3Dexplode, labels=3Dlabels, autopct=3D'%1.1f%%', shado=
w=3DTrue)
> savefig('pie_demo')
> show()
>
> regards,
> Ryan
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by xPML, a groundbreaking scripting langua=
ge
> that extends applications into web and mobile media. Attend the live webc=
ast
> and join the prime developer group breaking into this new coding territor=
y!
> http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D110944&bid=3D241720&dat=
=3D121642
> _______________________________________________
> Matplotlib-users mailing list
> Mat...@li...
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users
>
|