class_docstr: A Plotter for generating line plots.
class_docstr_tok: ["A","Plotter","for","generating","line","plots","."]
docstr: Constructor for LinePlotter.
  
  This expects a callable 'get_line_data_fn' in the parameters, which
  will return a list of list of floats, each one representing a line
  to be drawn. Typically, this will be a callback from the agent,
  which will return some useful information about its performance.
  
  Args:
    parameter_dict: None or dict of parameter specifications for
      visualization. If an expected parameter is present, its value will
      be used, otherwise it will use defaults.
docstr_tok: ["Constructor","for","LinePlotter",".","This","expects","a","callable","'get_line_data_fn","'","in","the","parameters",",","which","will","return","a","list","of","list","of","floats",",","each","one","representing","a","line","to","be","drawn",".","Typically",",","this","will","be","a","callback","from","the","agent",",","which","will","return","some","useful","information","about","its","performance",".","Args",":","parameter_dict",":","None","or","dict","of","parameter","specifications","for","visualization",".","If","an","expected","parameter","is","present",",","its","value","will","be","used",",","otherwise","it","will","use","defaults","."]
code: def __init__(self, parameter_dict=None):
      """Constructor for LinePlotter.
  
      This expects a callable 'get_line_data_fn' in the parameters, which
      will return a list of list of floats, each one representing a line
      to be drawn. Typically, this will be a callback from the agent,
      which will return some useful information about its performance.
  
      Args:
        parameter_dict: None or dict of parameter specifications for
          visualization. If an expected parameter is present, its value will
          be used, otherwise it will use defaults.
      """
      super(LinePlotter, self).__init__(parameter_dict)
      assert "get_line_data_fn" in self.parameters
      self.fig = plt.figure(
          frameon=False, figsize=self.parameters["figsize"]
      )
      self.plot = self.fig.add_subplot(111)
      self.plot_surface = None
      matplotlib.rc("font", **self.parameters["font"])
  
file_path: dopamine/dopamine/utils/line_plotter.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from dopamine.utils import plotter
  import gin
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import pygame
label_desc: Use image node_id 1 to create a new LinePlotter object from inherited base classes: plotter with example: obj = LinePlotter(parameter_dict)