The pie wedges are approximated using a 72-sided polygon (each side 5 
degrees), rather than a true ellipse.  There is a bug that if the wedge 
is smaller than a half of a side of this polygon (2.5 degrees) it 
creates only one side of the wedge.

This has been fixed on the 0.91.x maintenance branch in SVN r4882.

The SVN trunk uses a completely different approach using bezier curves, 
so doesn't exhibit this problem.

Cheers,
Mike

James Battat wrote:
> It looks like pie() omits slices that are smaller than a few percent.
> 
> In the following example, only one pie slice is drawn:
> 
>>>> import pylab
>>>> pylab.pie([98,2])
>>>> pylab.show()
> 
> The missing pie slice has neither a color fill nor a boundary (the
> arc of the pie slice is missing).
> 
> By contrast, the following works as expected:
>>>> pylab.pie([97,3])
> 
> It seems that the problem occurs for small slices, apparently the
> threshold is around 2-3%.
> 
> Any ideas?
> 
> Thanks in advance,
> James
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/matplotlib-users

-- 
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to