class_docstr: Graph super class containing generic common functions
class_docstr_tok: ["Graph","super","class","containing","generic","common","functions"]
code: def _compute_y_labels(self):
      y_pos = compute_scale(
          self._box.ymin,
          self._box.ymax,
          self.logarithmic,
          self.order_min,
          self.min_scale,
          self.max_scale,
      )
      if self.y_labels:
          self._y_labels = []
          for i, y_label in enumerate(self.y_labels):
              if isinstance(y_label, dict):
                  pos = self._adapt(y_label.get("value"))
                  title = y_label.get("label", self._y_format(pos))
              elif isinstance(y_label, str):
                  pos = self._adapt(y_pos[i % len(y_pos)])
                  title = y_label
              else:
                  pos = self._adapt(y_label)
                  title = self._y_format(pos)
              self._y_labels.append((title, pos))
          self._box.ymin = min(
              self._box.ymin, min(cut(self._y_labels, 1))
          )
          self._box.ymax = max(
              self._box.ymax, max(cut(self._y_labels, 1))
          )
      else:
          self._y_labels = list(zip(map(self._y_format, y_pos), y_pos))
  
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 42 for calling the Graph obj's underlying member method code with example usage: obj._compute_y_labels() without return types