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

Skip to content

Commit 7b50116

Browse files
authored
Merge pull request #22215 from meeseeksmachine/auto-backport-of-pr-22177-on-v3.5.x
Backport PR #22177 on branch v3.5.x (Document ArtistList)
2 parents 53ef1f7 + 080c5c7 commit 7b50116

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
@@ -1315,8 +1315,12 @@ class ArtistList(MutableSequence):
13151315
"""
13161316
A sublist of Axes children based on their type.
13171317
1318-
This exists solely to warn on modification. In the future, the
1319-
type-specific children sublists will be immutable tuples.
1318+
The type-specific children sublists will become immutable in
1319+
Matplotlib 3.7. Then, these artist lists will likely be replaced by
1320+
tuples. Use as if this is a tuple already.
1321+
1322+
This class exists only for the transition period to warn on the
1323+
deprecated modifcation of artist lists.
13201324
"""
13211325
def __init__(self, axes, prop_name, add_name,
13221326
valid_types=None, invalid_types=None):

0 commit comments

Comments
 (0)