class_docstr: The foundation of all animations.
  
  Parameters
  ----------
  blocks : list of animatplot.animations.Block
      A list of blocks to be animated
  timeline : Timeline or 1D array, optional
      If an array is passed in, it will be converted to a Timeline.
      If not given, a timeline will be created using the length of the
      first block.
  fig : matplotlib figure, optional
      The figure that the animation is to occur on
  
  Attributes
  ----------
  animation
      a matplotlib animation returned from FuncAnimation
class_docstr_tok: ["The","foundation","of","all","animations",".","Parameters","--","--","--","--","--","blocks",":","list","of","animatplot.animations.Block","A","list","of","blocks","to","be","animated","timeline",":","Timeline","or","1D","array",",","optional","If","an","array","is","passed","in",",","it","will","be","converted","to","a","Timeline",".","If","not","given",",","a","timeline","will","be","created","using","the","length","of","the","first","block",".","fig",":","matplotlib","figure",",","optional","The","figure","that","the","animation","is","to","occur","on","Attributes","--","--","--","--","--","animation","a","matplotlib","animation","returned","from","FuncAnimation"]
docstr: Creates interactive controls for the animation
  
  Creates both a play/pause button, and a time slider at once
  
  Parameters
  ----------
  timeline_slider_args : Dict, optional
      A dictionary of arguments to be passed to timeline_slider()
  toggle_args : Dict, optional
      A dictionary of argyments to be passed to toggle()
docstr_tok: ["Creates","interactive","controls","for","the","animation","Creates","both","a","play\/pause","button",",","and","a","time","slider","at","once","Parameters","--","--","--","--","--","timeline_slider_args",":","Dict",",","optional","A","dictionary","of","arguments","to","be","passed","to","timeline_slider","(",")","toggle_args",":","Dict",",","optional","A","dictionary","of","argyments","to","be","passed","to","toggle","(",")"]
code: def controls(self, timeline_slider_args={}, toggle_args={}):
      """Creates interactive controls for the animation
  
      Creates both a play/pause button, and a time slider at once
  
      Parameters
      ----------
      timeline_slider_args : Dict, optional
          A dictionary of arguments to be passed to timeline_slider()
      toggle_args : Dict, optional
          A dictionary of argyments to be passed to toggle()
      """
      self.timeline_slider(**timeline_slider_args)
      self.toggle(**toggle_args)
  
file_path: animatplot/animatplot/animation.py
imports: from matplotlib.animation import FuncAnimation, PillowWriter
  from matplotlib.widgets import Button, Slider
  import matplotlib.pyplot
  import numpy
  from animatplot import Timeline
label_desc: Use image node_id 4 for calling the Animation obj's underlying member method code with example usage: obj.controls(timeline_slider_args, toggle_args) without return types