code: def gridOn(self):  # noqa: N802
          
          return (self._gridOn and (self._has_default_loc()
                  or transforms.interval_contains(self.get_view_interval(), self.get_loc())))
docs: Control whether the gridline is drawn for this tick.