class_docstr: An object that collects relevant information about viewing Python code
  with visual annotations.
class_docstr_tok: ["An","object","that","collects","relevant","information","about","viewing","Python","code","with","visual","annotations","."]
docstr: This function finishes setting up necessary parameters about text
  and graphics locations for the plot. We don't know how to set these
  values until we know what the max height of the drawing will be. We don't know
  what that height is until after we've parsed and so on, which requires that
  we collect and store information in this view object before computing maxh.
  That is why this is a separate function not part of the constructor.
code: def set_locations(self, maxh):
      """
      This function finishes setting up necessary parameters about text
      and graphics locations for the plot. We don't know how to set these
      values until we know what the max height of the drawing will be. We don't know
      what that height is until after we've parsed and so on, which requires that
      we collect and store information in this view object before computing maxh.
      That is why this is a separate function not part of the constructor.
      """
      line2text = self.hchar / 1.7
      box2line = line2text * 2.6
      self.texty = self.bottomedge + maxh + box2line + line2text
      self.liney = self.bottomedge + maxh + box2line
      self.box_topy = self.bottomedge + maxh
      self.maxy = self.texty + 1.4 * self.fontsize
  
imports: import sys
  import os
  from pathlib import Path
  import tempfile
  import graphviz
  import graphviz.backend
  import token
  import matplotlib.patches
  import matplotlib.pyplot
  import matplotlib.colors
  from IPython.display import display, SVG
  from IPython import get_ipython
  import numpy
  import tsensor
  import tsensor.ast
  import tsensor.analysis
  import tsensor.parsing
label_desc: Use image node_id 3 for calling the PyVizView obj's underlying member method code with example usage: obj.set_locations(maxh) without return types