class_docstr: Animation using ggplot objects
  
  Parameters
  ----------
  plots :
      ggplot objects that make up the the frames of the animation
  interval : int
      Delay between frames in milliseconds. Defaults to 200.
  repeat_delay : int
      If the animation in repeated, adds a delay in milliseconds
      before repeating the animation. Defaults to `None`.
  repeat : bool
      Controls whether the animation should repeat when the sequence
      of frames is completed. Defaults to `True`.
  blit : bool
      Controls whether blitting is used to optimize drawing. Defaults
      to `False`.
  
  Notes
  -----
  1. The plots should have the same `facet` and
     the facet should not have fixed x and y scales.
  2. The scales of all the plots should have the same limits. It is
     a good idea to create a scale (with limits) for each aesthetic
     and add them to all the plots.
class_docstr_tok: ["Animation","using","ggplot","objects","Parameters","--","--","--","--","--","plots",":","ggplot","objects","that","make","up","the","the","frames","of","the","animation","interval",":","int","Delay","between","frames","in","milliseconds",".","Defaults","to","200.","repeat_delay",":","int","If","the","animation","in","repeated",",","adds","a","delay","in","milliseconds","before","repeating","the","animation",".","Defaults","to","`","None","`",".","repeat",":","bool","Controls","whether","the","animation","should","repeat","when","the","sequence","of","frames","is","completed",".","Defaults","to","`","True","`",".","blit",":","bool","Controls","whether","blitting","is","used","to","optimize","drawing",".","Defaults","to","`","False","`",".","Notes","--","--","-","1",".","The","plots","should","have","the","same","`","facet","`","and","the","facet","should","not","have","fixed","x","and","y","scales",".","2",".","The","scales","of","all","the","plots","should","have","the","same","limits",".","It","is","a","good","idea","to","create","a","scale","(","with","limits",")","for","each","aesthetic","and","add","them","to","all","the","plots","."]
code: def __init__(
      self,
      plots: Iterable[Ggplot],
      interval: int = 200,
      repeat_delay: int | None = None,
      repeat: bool = True,
      blit: bool = False,
  ):
      figure, artists = self._draw_plots(plots)
      ArtistAnimation.__init__(
          self,
          figure,
          artists,
          interval=interval,
          repeat_delay=repeat_delay,
          repeat=repeat,
          blit=blit,
      )
  
file_path: plotnine/plotnine/animation.py
imports: from __future__ import annotations
  import typing
  from copy import copy
  import pandas
  from matplotlib.animation import ArtistAnimation
  from .exceptions import PlotnineError
label_desc: Use image node_id 1 to create a new PlotnineAnimation object from inherited base classes: ArtistAnimation with example: obj = PlotnineAnimation(plots, interval, repeat_delay, repeat, blit)