class_docstr: Graph super class containing generic common functions
class_docstr_tok: ["Graph","super","class","containing","generic","common","functions"]
code: def add_squares(self, squares):
      x_lines = squares[0] - 1
      y_lines = squares[1] - 1
  
      _current_x = 0
      _current_y = 0
  
      for line in range(x_lines):
          _current_x += (self.width - self.margin_box.x) / squares[0]
          self.svg.node(
              self.nodes["plot"],
              "path",
              class_="bg-lines",
              d="M%s %s L%s %s"
              % (
                  _current_x,
                  0,
                  _current_x,
                  self.height - self.margin_box.y,
              ),
          )
  
      for line in range(y_lines):
          _current_y += (self.height - self.margin_box.y) / squares[1]
          self.svg.node(
              self.nodes["plot"],
              "path",
              class_="bg-lines",
              d="M%s %s L%s %s"
              % (
                  0,
                  _current_y,
                  self.width - self.margin_box.x,
                  _current_y,
              ),
          )
      return (
          (self.width - self.margin_box.x) / squares[0],
          (self.height - self.margin_box.y) / squares[1],
      )
  
imports: from math import ceil, cos, sin, sqrt
  from pygal import stats
  from pygal._compat import is_list_like
  from pygal.graph.public import PublicApi
  from pygal.interpolate import INTERPOLATIONS
  from pygal.util import cached_property, compute_scale, cut, decorate, filter_kwargs, get_text_box, get_texts_box, majorize, rad, reverse_text_len, split_title, truncate
  from pygal.view import LogView, ReverseView, View, XYLogView
label_desc: Use image node_id 44 for calling the Graph obj's underlying member method code with example usage: obj.add_squares(squares) and returns: unknown,  unknown