[AstroPy] matplotlib's pie colors
Jae-Joon Lee
lee.j.joon at gmail.com
Fri Dec 2 01:24:28 EST 2011
Thanks, Johann. I'm not sure what happened.
a = pie([1,2,4,3], labels=["1", "2", "4", "3"], autopct="%d")
from matplotlib.patheffects import withStroke
effect_whiteborder = withStroke(foreground="w", linewidth=3)
for txt in a[2]:
txt.set_path_effects([effect_whiteborder])
Also, here are some screenshots that uses patheffects.
http://matplotlib.sourceforge.net/examples/pylab_examples/patheffect_demo.html
Regards,
-JJ
On Thu, Dec 1, 2011 at 4:31 PM, Johann Cohen-Tanugi
<johann.cohentanugi at gmail.com> wrote:
> carriage return missing, obviously :
>
> from matplotlib.patheffects import withStroke
> effect_whiteborder =...
>
> Thanks for tip JJ, it is a nice trick to know.
> JCT
>
>
>
> On 12/01/2011 06:42 AM, Jae-Joon Lee wrote:
>>
>> from matplotlib.patheffects import withStrokeeffect_whiteborder =
More information about the AstroPy
mailing list