Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
__iter__
ArtistList
1 parent 669cb82 commit 8737ac3Copy full SHA for 8737ac3
1 file changed
lib/matplotlib/axes/_base.py
@@ -1353,6 +1353,11 @@ def __len__(self):
1353
return sum(self._type_check(artist)
1354
for artist in self._axes._children)
1355
1356
+ def __iter__(self):
1357
+ for artist in self._axes._children:
1358
+ if self._type_check(artist):
1359
+ yield artist
1360
+
1361
def __getitem__(self, key):
1362
return [artist
1363
for artist in self._axes._children
0 commit comments