parameters: (self)
return_statement: return y0, y1
docstring: Calculate the current y coordinates of the line ends.
          :return: Tuple y0, y1.
docstring_summary: Calculate the current y coordinates of the line ends.
          :return: Tuple y0, y1.
docstring_tokens: Calculate the current y coordinates of the line ends . : return : Tuple y0 y1 .
function: def _get_y0_y1(self):
          """
          Calculate the current y coordinates of the line ends.
          :return: Tuple y0, y1.
          """
          if self.y0 is None or self.y1 is None:
              y0, y1 = self.axis.get_ylim()
          if self.y0 is not None:
              y0 = self.y0
          if self.y1 is not None:
              y1 = self.y1
          return y0, y1
function_tokens: def _get_y0_y1 ( self ) : if self . y0 is None or self . y1 is None : y0 , y1 = self . axis . get_ylim ( ) if self . y0 is not None : y0 = self . y0 if self . y1 is not None : y1 = self . y1 return y0 , y1