class_docstr: Graph super class containing generic common functions
class_docstr_tok: ["Graph","super","class","containing","generic","common","functions"]
code: def _compute_y_labels_major(self):
      if self.y_labels_major_every:
          self._y_labels_major = [
              self._y_labels[i][1]
              for i in range(
                  0, len(self._y_labels), self.y_labels_major_every
              )
          ]
  
      elif self.y_labels_major_count:
          label_count = len(self._y_labels)
          major_count = self.y_labels_major_count
          if major_count >= label_count:
              self._y_labels_major = [
                  label[1] for label in self._y_labels
              ]
          else:
              self._y_labels_major = [
                  self._y_labels[
                      int(i * (label_count - 1) / (major_count - 1))
                  ][1]
                  for i in range(major_count)
              ]
  
      elif self.y_labels_major:
          self._y_labels_major = list(
              map(self._adapt, self.y_labels_major)
          )
      elif self._y_labels:
          self._y_labels_major = majorize(cut(self._y_labels, 1))
      else:
          self._y_labels_major = []
  
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 43 for calling the Graph obj's underlying member method code with example usage: obj._compute_y_labels_major() without return types