We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffcc8d3 commit 146b478Copy full SHA for 146b478
1 file changed
lib/matplotlib/axes/_base.py
@@ -1315,8 +1315,7 @@ def __clear(self):
1315
self._get_patches_for_fill = _process_plot_var_args(self, 'fill')
1316
1317
self._gridOn = mpl.rcParams['axes.grid']
1318
- old_children = getattr(self, '_children', [])
1319
- self._children = []
+ old_children, self._children = self._children, []
1320
for chld in old_children:
1321
chld.axes = chld.figure = None
1322
self._mouseover_set = _OrderedSet()
0 commit comments