class_docstr: Vertical Pyramid graph class
class_docstr_tok: ["Vertical","Pyramid","graph","class"]
docstr: Compute Y min and max
docstr_tok: ["Compute","Y","min","and","max"]
code: def _compute_box(self, positive_vals, negative_vals):
      """Compute Y min and max"""
      max_ = max(
          max(positive_vals or [self.zero]),
          max(negative_vals or [self.zero]),
      )
  
      if self.range and self.range[0] is not None:
          self._box.ymin = self.range[0]
      else:
          self._box.ymin = -max_
  
      if self.range and self.range[1] is not None:
          self._box.ymax = self.range[1]
      else:
          self._box.ymax = max_
  
file_path: pygal/pygal/graph/pyramid.py
imports: from pygal.adapters import positive
  from pygal.graph.horizontal import HorizontalGraph
  from pygal.graph.stackedbar import StackedBar
label_desc: Use image node_id 3 for calling the VerticalPyramid obj's underlying member method code with example usage: obj._compute_box(positive_vals, negative_vals) without return types