Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion lib/matplotlib/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,22 @@ def __init__(self, lines, has_xerr=False, has_yerr=False, **kwargs):

class PieContainer:
"""
Container for the artists of pie charts (e.g. created by `.Axes.pie`).
Preliminary aggregating class for the artists of pie charts (e.g. created by
`.Axes.pie`).

.. versionadded:: 3.11

.. warning::
Limited guaranteed public API:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't that what we mean by provisional API?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inverse: If we'd say "PieContainer is provisional", there would be no guarantee. We here guarantee a minimal set of API.

Note that the "provisional statement" below only covers the naming.


- the below given attributes
- the methods ``remove()`` and ``add_texts()``
- tuple unpacking of the container into ``(wedges, texts)`` for backward
compatibility

This is currently not a `.Container`, it's still to be decided whether this
is promoted to a proper `.Container` or developed in a different direction.

The class name ``PieContainer`` name is provisional and may change in future
to reflect development of its functionality.

Expand Down
Loading