class_docstr: Abstract base class for plotters.
class_docstr_tok: ["Abstract","base","class","for","plotters","."]
docstr: Helpful common functionality when rendering matplotlib-style plots.
docstr_tok: ["Helpful","common","functionality","when","rendering","matplotlib-style","plots","."]
code: def _setup_plot(self):
      """Helpful common functionality when rendering matplotlib-style plots."""
      self.plot.cla()  # Clear current figure.
      self.fig.patch.set_facecolor(self.parameters["face_color"])
      try:
          self.plot.set_facecolor(self.parameters["bg_color"])
      except AttributeError:
          self.plot.set_axis_bgcolor(self.parameters["bg_color"])
      if "xlabel" in self.parameters:
          self.plot.set_xlabel(
              self.parameters["xlabel"],
              fontsize=self.parameters["fontsize"] - 2,
          )
      if "ylabel" in self.parameters:
          self.plot.set_ylabel(
              self.parameters["ylabel"],
              fontsize=self.parameters["fontsize"] - 2,
          )
      if "title" in self.parameters:
          self.plot.set_title(
              self.parameters["title"],
              fontsize=self.parameters["fontsize"] + 2,
          )
      if "xticks" in self.parameters:
          self.plot.set_xticks(self.parameters["xticks"])
      if "xticklabels" in self.parameters:
          self.plot.set_xticklabels(self.parameters["xticklabels"])
  
      self.plot.tick_params(labelsize=self.parameters["fontsize"])
  
file_path: dopamine/dopamine/utils/plotter.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
label_desc: Use image node_id 2 for calling the Plotter obj's underlying member method code with example usage: obj._setup_plot() without return types