docs: def height(self) -> int:
          """Determines how many entry rows are in the diagram."""
          max_y = -1.0
          for _, y in self.entries.keys():
              max_y = max(max_y, y)
          for h in self.horizontal_lines:
              max_y = max(max_y, h.y)
          for v in self.vertical_lines:
              max_y = max(max_y, v.y1, v.y2)
          return 1 + int(max_y)