Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8e1ab6e

Browse files
committed
Document ArtistList
1 parent 8366ea4 commit 8e1ab6e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

doc/api/axes_api.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -607,3 +607,5 @@ Other
607607
Axes.get_transformed_clip_path_and_affine
608608
Axes.has_data
609609
Axes.set
610+
611+
.. autoclass:: matplotlib.axes.Axes.ArtistList

lib/matplotlib/axes/_base.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1317,8 +1317,12 @@ class ArtistList(MutableSequence):
13171317
"""
13181318
A sublist of Axes children based on their type.
13191319
1320-
This exists solely to warn on modification. In the future, the
1321-
type-specific children sublists will be immutable tuples.
1320+
The type-specific children sublists will become immutable in
1321+
Matplotlib 3.7. Then, these artist lists will likely be replaced by
1322+
tuples. Use as if this is a tuple already.
1323+
1324+
This class exists only for the transition period to warn on the
1325+
deprecated modifcation of artist lists.
13221326
"""
13231327
def __init__(self, axes, prop_name, add_name,
13241328
valid_types=None, invalid_types=None):

0 commit comments

Comments
 (0)