docstr: Parameters
  ----------
  canvas : FigureCanvasAgg
      The canvas to work with, this only works for subclasses of the Agg
      canvas which have the `~FigureCanvasAgg.copy_from_bbox` and
      `~FigureCanvasAgg.restore_region` methods.
  
  animated_artists : Iterable[Artist]
      List of the artists to manage
docstr_tok: ["Parameters","--","--","--","--","--","canvas",":","FigureCanvasAgg","The","canvas","to","work","with",",","this","only","works","for","subclasses","of","the","Agg","canvas","which","have","the","`","~FigureCanvasAgg.copy_from_bbox","`","and","`","~FigureCanvasAgg.restore_region","`","methods",".","animated_artists",":","Iterable","[","Artist","]","List","of","the","artists","to","manage"]
code: def __init__(self, canvas, animated_artists=()):
      """
      Parameters
      ----------
      canvas : FigureCanvasAgg
          The canvas to work with, this only works for subclasses of the Agg
          canvas which have the `~FigureCanvasAgg.copy_from_bbox` and
          `~FigureCanvasAgg.restore_region` methods.
  
      animated_artists : Iterable[Artist]
          List of the artists to manage
      """
      self.canvas = canvas
      self._bg = None
      self._artists = []
  
      for a in animated_artists:
          self.add_artist(a)
      # grab the background on every draw
      self.cid = canvas.mpl_connect("draw_event", self.on_draw)
  
file_path: matplotlib/galleries/users_explain/animations/blitting.py
imports: import matplotlib.pyplot
  import numpy
label_desc: Use image node_id 1 to create a new BlitManager object  with example: obj = BlitManager(canvas, animated_artists)