class_docstr: Rada graph class
class_docstr_tok: ["Rada","graph","class"]
docstr: Override y axis to make it polar
docstr_tok: ["Override","y","axis","to","make","it","polar"]
code: def _y_axis(self, draw_axes=True):
      """Override y axis to make it polar"""
      if not self._y_labels or not self.show_y_labels:
          return
  
      axis = self.svg.node(self.nodes["plot"], class_="axis y web")
  
      for label, r in reversed(self._y_labels):
          major = r in self._y_labels_major
          if not (self.show_minor_y_labels or major):
              continue
          guides = self.svg.node(
              axis,
              class_="%sguides"
              % ("logarithmic " if self.logarithmic else ""),
          )
          if self.show_y_guides:
              self.svg.line(
                  guides,
                  [self.view((r, theta)) for theta in self._x_pos],
                  close=True,
                  class_="%sguide line" % ("major " if major else ""),
              )
          x, y = self.view((r, self._x_pos[0]))
          x -= 5
          text = self.svg.node(
              guides, "text", x=x, y=y, class_="major" if major else ""
          )
          text.text = label
  
          if self.y_label_rotation:
              text.attrib["transform"] = "rotate(%d %f %f)" % (
                  self.y_label_rotation,
                  x,
                  y,
              )
  
          self.svg.node(
              guides,
              "title",
          ).text = self._y_format(r)
  
file_path: pygal/pygal/graph/radar.py
imports: from math import cos, pi
  from pygal.adapters import none_to_zero, positive
  from pygal.graph.line import Line
  from pygal.util import cached_property, compute_scale, cut, deg, truncate
  from pygal.view import PolarLogView, PolarView
label_desc: Use image node_id 6 for calling the Radar obj's underlying member method code with example usage: obj._y_axis(draw_axes) without return types