MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / pie

Function pie

lib/matplotlib/pyplot.py:3967–4009  ·  view source on GitHub ↗
(
    x: ArrayLike,
    explode: ArrayLike | None = None,
    labels: Sequence[str] | None = None,
    colors: ColorType | Sequence[ColorType] | None = None,
    autopct: str | Callable[[float], str] | None = None,
    pctdistance: float = 0.6,
    shadow: bool = False,
    labeldistance: float | None = 1.1,
    startangle: float = 0,
    radius: float = 1,
    counterclock: bool = True,
    wedgeprops: dict[str, Any] | None = None,
    textprops: dict[str, Any] | None = None,
    center: tuple[float, float] = (0, 0),
    frame: bool = False,
    rotatelabels: bool = False,
    *,
    normalize: bool = True,
    hatch: str | Sequence[str] | None = None,
    data: DataParamType = None,
)

Source from the content-addressed store, hash-verified

3965# Autogenerated by boilerplate.py. Do not edit as changes will be lost.
3966@_copy_docstring_and_deprecators(Axes.pie)
3967def pie(
3968 x: ArrayLike,
3969 explode: ArrayLike | None = None,
3970 labels: Sequence[str] | None = None,
3971 colors: ColorType | Sequence[ColorType] | None = None,
3972 autopct: str | Callable[[float], str] | None = None,
3973 pctdistance: float = 0.6,
3974 shadow: bool = False,
3975 labeldistance: float | None = 1.1,
3976 startangle: float = 0,
3977 radius: float = 1,
3978 counterclock: bool = True,
3979 wedgeprops: dict[str, Any] | None = None,
3980 textprops: dict[str, Any] | None = None,
3981 center: tuple[float, float] = (0, 0),
3982 frame: bool = False,
3983 rotatelabels: bool = False,
3984 *,
3985 normalize: bool = True,
3986 hatch: str | Sequence[str] | None = None,
3987 data: DataParamType = None,
3988) -> PieContainer:
3989 return gca().pie(
3990 x,
3991 explode=explode,
3992 labels=labels,
3993 colors=colors,
3994 autopct=autopct,
3995 pctdistance=pctdistance,
3996 shadow=shadow,
3997 labeldistance=labeldistance,
3998 startangle=startangle,
3999 radius=radius,
4000 counterclock=counterclock,
4001 wedgeprops=wedgeprops,
4002 textprops=textprops,
4003 center=center,
4004 frame=frame,
4005 rotatelabels=rotatelabels,
4006 normalize=normalize,
4007 hatch=hatch,
4008 **({"data": data} if data is not None else {}),
4009 )
4010
4011
4012# Autogenerated by boilerplate.py. Do not edit as changes will be lost.

Callers

nothing calls this directly

Calls 2

gcaFunction · 0.85
pieMethod · 0.80

Tested by

no test coverage detected