MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _get_animated_artists

Method _get_animated_artists

lib/matplotlib/widgets.py:2359–2369  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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."""

Callers 3

update_backgroundMethod · 0.95
updateMethod · 0.95

Calls 3

get_animatedMethod · 0.80
get_figureMethod · 0.45
get_childrenMethod · 0.45