Convenience method to get all animated artists of the figure containing this widget, excluding those already present in self.artists. The returned tuple is not sorted by 'z_order': z_order sorting is valid only when considering all artists and not only a subset of al
(self)
| 2357 | self.update_background(None) |
| 2358 | |
| 2359 | def _get_animated_artists(self): |
| 2360 | """ |
| 2361 | Convenience method to get all animated artists of the figure containing |
| 2362 | this widget, excluding those already present in self.artists. |
| 2363 | The returned tuple is not sorted by 'z_order': z_order sorting is |
| 2364 | valid only when considering all artists and not only a subset of all |
| 2365 | artists. |
| 2366 | """ |
| 2367 | return tuple(a for ax_ in self.ax.get_figure().get_axes() |
| 2368 | for a in ax_.get_children() |
| 2369 | if a.get_animated() and a not in self.artists) |
| 2370 | |
| 2371 | def update_background(self, event): |
| 2372 | """Force an update of the background.""" |