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.
2 parents 29bff2f + 48c7360 commit db9e631Copy full SHA for db9e631
lib/matplotlib/container.py
@@ -32,9 +32,8 @@ def set_remove_method(self, f):
32
self._remove_method = f
33
34
def remove(self):
35
- for c in cbook.flatten(self,
36
- scalarp=lambda x: isinstance(x,
37
- martist.Artist)):
+ for c in cbook.flatten(
+ self, scalarp=lambda x: isinstance(x, martist.Artist)):
38
c.remove()
39
40
if self._remove_method:
@@ -102,7 +101,7 @@ def pchanged(self):
102
101
func(self)
103
104
def get_children(self):
105
- return list(cbook.flatten(self))
+ return [child for child in cbook.flatten(self) if child is not None]
106
107
108
class BarContainer(Container):
0 commit comments