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

Skip to content

Commit 17a7bb1

Browse files
authored
Merge pull request #19889 from anntzer/allen
Include length in ArtistList repr.
2 parents d893819 + b71dedc commit 17a7bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1347,7 +1347,7 @@ def __init__(self, axes, prop_name, add_name,
13471347
)
13481348

13491349
def __repr__(self):
1350-
return f'<Axes.ArtistList of {self._prop_name}>'
1350+
return f'<Axes.ArtistList of {len(self)} {self._prop_name}>'
13511351

13521352
def __len__(self):
13531353
return sum(self._type_check(artist)

0 commit comments

Comments
 (0)